	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb347_irq_init
_smb347_irq_init:                       ## @smb347_irq_init
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movl	(%r13), %edi
	callq	_gpio_to_irq
	movl	%eax, %r15d
	movl	(%r13), %edi
	movq	_GPIOF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_gpio_request_one
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_smb347_interrupt@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
	movl	4(%r14), %r8d
	movl	%r15d, %edi
	xorl	%r15d, %r15d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_smb347_set_writable
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	(%r12), %edi
	movq	_CFG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CFG_STAT_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	_CFG_STAT_DISABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	orl	%ecx, %edx
	callq	_regmap_update_bits
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_smb347_set_writable
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_free_irq
LBB0_8:
	movl	(%r13), %edi
	callq	_gpio_free
LBB0_9:
	movl	%r15d, (%r14)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOF_IN,4,2                   ## @GPIOF_IN
	.comm	_smb347_interrupt,4,2           ## @smb347_interrupt
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_CFG_STAT,4,2                   ## @CFG_STAT
	.comm	_CFG_STAT_ACTIVE_HIGH,4,2       ## @CFG_STAT_ACTIVE_HIGH
	.comm	_CFG_STAT_DISABLED,4,2          ## @CFG_STAT_DISABLED
	.no_dead_strip	_smb347_irq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb347_irq_init
_smb347_irq_init:                       ; @smb347_irq_init
	.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, x1
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w0, [x24]
	bl	_gpio_to_irq
	mov	x20, x0
	ldr	w0, [x24]
Lloh0:
	adrp	x8, _GPIOF_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOF_IN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	bl	_gpio_request_one
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _smb347_interrupt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smb347_interrupt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w4, [x19, #4]
	mov	x0, x20
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	w1, #1
	bl	_smb347_set_writable
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _CFG_STAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CFG_STAT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _CFG_STAT_ACTIVE_HIGH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CFG_STAT_ACTIVE_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _CFG_STAT_DISABLED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CFG_STAT_DISABLED@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x9]
	orr	w2, w3, w8
	bl	_regmap_update_bits
	mov	x23, x0
	mov	x0, x21
	mov	w1, #0
	bl	_smb347_set_writable
	tbnz	w23, #31, LBB0_8
; %bb.4:
	mov	w22, #0
	b	LBB0_12
LBB0_5:
	mov	x22, x0
	b	LBB0_11
LBB0_6:
	mov	x22, x0
	b	LBB0_10
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
	mov	x22, x23
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_free_irq
LBB0_10:
	ldr	w0, [x24]
	bl	_gpio_free
LBB0_11:
	mov	w20, #0
LBB0_12:
	str	w20, [x19]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOF_IN,4,2                   ; @GPIOF_IN
	.comm	_smb347_interrupt,4,2           ; @smb347_interrupt
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_CFG_STAT,4,2                   ; @CFG_STAT
	.comm	_CFG_STAT_ACTIVE_HIGH,4,2       ; @CFG_STAT_ACTIVE_HIGH
	.comm	_CFG_STAT_DISABLED,4,2          ; @CFG_STAT_DISABLED
	.no_dead_strip	_smb347_irq_init
.subsections_via_symbols
