	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8727_setup_irq
_lp8727_setup_irq:                      ## @lp8727_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %rcx
	movl	(%rcx), %r14d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_DEBOUNCE_MSEC@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r15d
	leaq	12(%rbx), %rdi
	movq	_lp8727_delayed_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.4:
	movq	_lp8727_isr_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	%r14d, (%rbx)
	movl	%r15d, %edi
	callq	_msecs_to_jiffies
	movl	%eax, 4(%rbx)
	jmp	LBB0_6
LBB0_3:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_DEBOUNCE_MSEC,4,2      ## @DEFAULT_DEBOUNCE_MSEC
	.comm	_lp8727_delayed_func,4,2        ## @lp8727_delayed_func
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_lp8727_isr_func,4,2            ## @lp8727_isr_func
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"lp8727_irq"

	.no_dead_strip	_lp8727_setup_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8727_setup_irq
_lp8727_setup_irq:                      ; @lp8727_setup_irq
	.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
	mov	x19, x0
	ldp	x9, x8, [x0, #16]
	ldr	w20, [x8]
Lloh0:
	adrp	x8, _DEFAULT_DEBOUNCE_MSEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_DEBOUNCE_MSEC@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	add	x0, x0, #12
Lloh2:
	adrp	x8, _lp8727_delayed_func@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lp8727_delayed_func@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	cmp	w20, #0
	b.le	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _lp8727_isr_func@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lp8727_isr_func@GOTPAGEOFF]
Lloh7:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh14:
	adrp	x4, l_.str.1@PAGE
Lloh15:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	cbnz	w0, LBB0_4
; %bb.2:
	str	w20, [x19]
	mov	x0, x21
	bl	_msecs_to_jiffies
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	mov	w0, #0
LBB0_4:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_DEBOUNCE_MSEC,4,2      ; @DEFAULT_DEBOUNCE_MSEC
	.comm	_lp8727_delayed_func,4,2        ; @lp8727_delayed_func
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid irq number: %d\n"

	.comm	_lp8727_isr_func,4,2            ; @lp8727_isr_func
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"lp8727_irq"

	.no_dead_strip	_lp8727_setup_irq
.subsections_via_symbols
