	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_gpiochip_parse_own_gpio
_acpi_gpiochip_parse_own_gpio:          ## @acpi_gpiochip_parse_own_gpio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_GPIO_LOOKUP_FLAGS_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movl	$0, (%r8)
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_fwnode_property_read_u32_array
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_gpiochip_get_desc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	cmpq	$0, -56(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orq	%rax, (%r14)
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_fwnode_property_present
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %edi
LBB0_2:
	callq	_ERR_PTR
	movq	%rax, %r13
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_fwnode_property_present
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_fwnode_property_present
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	orl	%eax, (%r15)
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_fwnode_property_read_string
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.14:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_LOOKUP_FLAGS_DEFAULT,8,3  ## @GPIO_LOOKUP_FLAGS_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpios"

	.comm	_GPIO_ACTIVE_LOW,8,3            ## @GPIO_ACTIVE_LOW
L_.str.1:                               ## @.str.1
	.asciz	"input"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"output-low"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.3:                               ## @.str.3
	.asciz	"output-high"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"line-name"

	.no_dead_strip	_acpi_gpiochip_parse_own_gpio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_gpiochip_parse_own_gpio
_acpi_gpiochip_parse_own_gpio:          ; @acpi_gpiochip_parse_own_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _GPIO_LOOKUP_FLAGS_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GPIO_LOOKUP_FLAGS_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x3]
	str	wzr, [x4]
	str	xzr, [x2]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_fwnode_property_read_u32_array
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_gpiochip_get_desc
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.2:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _GPIO_ACTIVE_LOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GPIO_ACTIVE_LOW@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x23]
	orr	x8, x9, x8
	str	x8, [x23]
LBB0_4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fwnode_property_present
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fwnode_property_present
	cbz	x0, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fwnode_property_present
	cbz	x0, LBB0_11
; %bb.9:
Lloh21:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fwnode_property_read_string
	b	LBB0_13
LBB0_11:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	bl	_ERR_PTR
	mov	x22, x0
LBB0_13:
	ldr	x8, [sp, #24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_LOOKUP_FLAGS_DEFAULT,8,3  ; @GPIO_LOOKUP_FLAGS_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpios"

	.comm	_GPIO_ACTIVE_LOW,8,3            ; @GPIO_ACTIVE_LOW
l_.str.1:                               ; @.str.1
	.asciz	"input"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"output-low"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.3:                               ; @.str.3
	.asciz	"output-high"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"line-name"

	.no_dead_strip	_acpi_gpiochip_parse_own_gpio
.subsections_via_symbols
