	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx9500_gpio_probe
_sx9500_gpio_probe:                     ## @sx9500_gpio_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	4(%rdi), %r15
	movq	_acpi_sx9500_gpios@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_acpi_dev_add_driver_gpios
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
LBB0_3:
	cmpl	$0, (%rbx)
	jg	LBB0_7
## %bb.4:
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_gpiod_to_irq
	movl	%eax, (%rbx)
LBB0_7:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
	movq	$0, (%r14)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_sx9500_gpios,4,2          ## @acpi_sx9500_gpios
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to add GPIO mapping table\n"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt"

	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
L_.str.2:                               ## @.str.2
	.asciz	"gpio get irq failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.4:                               ## @.str.4
	.asciz	"gpio get reset pin failed\n"

	.no_dead_strip	_sx9500_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx9500_gpio_probe
_sx9500_gpio_probe:                     ; @sx9500_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _acpi_sx9500_gpios@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_sx9500_gpios@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_devm_acpi_dev_add_driver_gpios
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_3:
	ldr	w8, [x21]
	cmp	w8, #0
	b.gt	LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _GPIOD_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIOD_IN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_gpiod_to_irq
	str	w0, [x21]
LBB0_7:
Lloh12:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	str	xzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_sx9500_gpios,4,2          ; @acpi_sx9500_gpios
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to add GPIO mapping table\n"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt"

	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
l_.str.2:                               ; @.str.2
	.asciz	"gpio get irq failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.4:                               ; @.str.4
	.asciz	"gpio get reset pin failed\n"

	.no_dead_strip	_sx9500_gpio_probe
.subsections_via_symbols
