	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mma9551_gpio_probe
_mma9551_gpio_probe:                    ## @mma9551_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r15
	movq	_MMA9551_GPIO_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	movq	8(%r15), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GPIOD_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movl	%r14d, (%rax,%rbx,4)
	movq	_mma9551_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_MMA9551_IRQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_desc_to_gpio
	movq	(%r15), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	incq	%rbx
	movq	_MMA9551_GPIO_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA9551_GPIO_COUNT,4,2         ## @MMA9551_GPIO_COUNT
	.comm	_GPIOD_IN,4,2                   ## @GPIOD_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acpi gpio get index failed\n"

	.comm	_mma9551_event_handler,4,2      ## @mma9551_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_MMA9551_IRQ_NAME,4,2           ## @MMA9551_IRQ_NAME
L_.str.1:                               ## @.str.1
	.asciz	"request irq %d failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"gpio resource, no:%d irq:%d\n"

	.no_dead_strip	_mma9551_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mma9551_gpio_probe
_mma9551_gpio_probe:                    ; @mma9551_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	bl	_iio_priv
Lloh0:
	adrp	x26, _MMA9551_GPIO_COUNT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MMA9551_GPIO_COUNT@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x0
	mov	x22, #0
	ldr	x19, [x0, #8]
Lloh2:
	adrp	x27, _GPIOD_IN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GPIOD_IN@GOTPAGEOFF]
Lloh4:
	adrp	x28, _IRQF_ONESHOT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh6:
	adrp	x23, _MMA9551_IRQ_NAME@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MMA9551_IRQ_NAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, #0
	mov	x2, x22
	bl	_devm_gpiod_get_index
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_gpiod_to_irq
	mov	x25, x0
	tbnz	w0, #31, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	str	w25, [x8, x22, lsl #2]
Lloh8:
	adrp	x8, _mma9551_event_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mma9551_event_handler@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w4, w9, w8
	ldr	w5, [x23]
	mov	x0, x19
	mov	x1, x25
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_desc_to_gpio
	mov	x2, x0
	ldr	x8, [x21]
	ldr	w3, [x8, x22, lsl #2]
	mov	x0, x19
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	add	x22, x22, #1
	ldrsw	x8, [x26]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_6:
	mov	w25, #0
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_8:
	mov	x25, x0
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA9551_GPIO_COUNT,4,2         ; @MMA9551_GPIO_COUNT
	.comm	_GPIOD_IN,4,2                   ; @GPIOD_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acpi gpio get index failed\n"

	.comm	_mma9551_event_handler,4,2      ; @mma9551_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_MMA9551_IRQ_NAME,4,2           ; @MMA9551_IRQ_NAME
l_.str.1:                               ; @.str.1
	.asciz	"request irq %d failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"gpio resource, no:%d irq:%d\n"

	.no_dead_strip	_mma9551_gpio_probe
.subsections_via_symbols
