	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_gpio                 ## -- Begin function acpi_find_gpio
	.p2align	4, 0x90
_acpi_find_gpio:                        ## @acpi_find_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	callq	_ACPI_COMPANION
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_gpio_suffixes@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	leaq	-80(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r8
	movq	%r12, %rdi
	movl	$32, %esi
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdx
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	leaq	-104(%rbp), %rcx
	callq	_acpi_get_gpiod_by_index
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
	jmp	LBB0_9
LBB0_8:
                                        ## implicit-def: $r15
LBB0_9:
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_acpi_can_fallback_to_crs
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	leaq	-104(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_acpi_get_gpiod_by_index
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_20
LBB0_12:
	cmpq	$0, -104(%rbp)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_15
## %bb.13:
	movl	(%rdi), %eax
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.14:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
LBB0_15:
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_acpi_gpio_update_gpiod_flags
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_acpi_gpio_update_gpiod_lookup_flags
	jmp	LBB0_20
LBB0_16:
	movq	%r15, %rdi
	callq	_ERR_CAST
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_dev_dbg
LBB0_18:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
LBB0_19:
	movq	%rax, %r15
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	%r15, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_suffixes,8,3              ## @gpio_suffixes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"refusing GpioInt() entry when doing GPIOD_OUT_* lookup\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_gpio                 ; -- Begin function acpi_find_gpio
	.p2align	2
_acpi_find_gpio:                        ; @acpi_find_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x4, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x22, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_ACPI_COMPANION
	mov	x23, x0
Lloh3:
	adrp	x28, _gpio_suffixes@GOTPAGE
Lloh4:
	ldr	x28, [x28, _gpio_suffixes@GOTPAGEOFF]
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, #0
Lloh5:
	adrp	x26, l_.str.1@PAGE
Lloh6:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh7:
	adrp	x20, _EPROBE_DEFER@GOTPAGE
Lloh8:
	ldr	x20, [x20, _EPROBE_DEFER@GOTPAGEOFF]
Lloh9:
	adrp	x27, l_.str@PAGE
Lloh10:
	add	x27, x27, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x3, [x8, x19, lsl #3]
	cbz	x24, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x3, [sp]
	add	x0, sp, #40
	mov	w1, #32
	mov	x2, x27
	mov	x3, x24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #40
	mov	w1, #32
	mov	x2, x26
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_snprintf
	add	x1, sp, #40
	add	x3, sp, #32
	mov	x0, x23
	mov	x2, x22
	bl	_acpi_get_gpiod_by_index
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_PTR_ERR
	ldr	w8, [x20]
	cmn	w0, w8
	b.eq	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_9
LBB0_8:
                                        ; implicit-def: $x25
LBB0_9:
	mov	x0, x25
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x23
	mov	x1, x24
	bl	_acpi_can_fallback_to_crs
	cbz	w0, LBB0_15
; %bb.11:
	add	x3, sp, #32
	mov	x0, x23
	mov	x1, #0
	mov	x2, x22
	bl	_acpi_get_gpiod_by_index
	mov	x25, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_19
LBB0_12:
	ldp	x0, x8, [sp, #24]               ; 8-byte Folded Reload
	cbz	x8, LBB0_16
; %bb.13:
	ldr	w8, [x0]
Lloh11:
	adrp	x9, _GPIOD_OUT_LOW@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _GPIOD_OUT_HIGH@GOTPAGE
Lloh15:
	ldr	x10, [x10, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_16
; %bb.14:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_15:
Lloh19:
	adrp	x8, _ENOENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	b	LBB0_18
LBB0_16:
	add	x1, sp, #32
	bl	_acpi_gpio_update_gpiod_flags
	add	x1, sp, #32
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_acpi_gpio_update_gpiod_lookup_flags
	b	LBB0_19
LBB0_17:
	mov	x0, x25
	bl	_ERR_CAST
LBB0_18:
	mov	x25, x0
LBB0_19:
	ldr	x8, [sp, #72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_suffixes,8,3              ; @gpio_suffixes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"refusing GpioInt() entry when doing GPIOD_OUT_* lookup\n"

.subsections_via_symbols
