	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ak8975_setup_irq
_ak8975_setup_irq:                      ## @ak8975_setup_irq
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	addq	$12, %rdi
	callq	_init_waitqueue_head
	leaq	8(%r12), %rsi
	xorl	%edi, %edi
	callq	_clear_bit
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movl	4(%r12), %edi
	callq	_gpio_to_irq
	movl	%eax, %r15d
LBB0_2:
	addq	$4, %r14
	movq	_ak8975_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%r15d, (%r12)
	jmp	LBB0_5
LBB0_3:
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %r8d
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ak8975_irq_handler,4,2         ## @ak8975_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq %d request failed, (gpio %d): %d\n"

	.no_dead_strip	_ak8975_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ak8975_setup_irq
_ak8975_setup_irq:                      ; @ak8975_setup_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #16]
	add	x0, x0, #12
	bl	_init_waitqueue_head
	add	x1, x19, #8
	mov	w0, #0
	bl	_clear_bit
	ldr	w20, [x21]
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_gpio_to_irq
	mov	x20, x0
LBB0_2:
	add	x21, x21, #4
Lloh0:
	adrp	x8, _ak8975_irq_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ak8975_irq_handler@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x21
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.3:
	str	w20, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w3, [x19, #4]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x4, x22
	bl	_dev_err
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ak8975_irq_handler,4,2         ; @ak8975_irq_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq %d request failed, (gpio %d): %d\n"

	.no_dead_strip	_ak8975_setup_irq
.subsections_via_symbols
