	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp_irq_type
_lp_irq_type:                           ## @lp_irq_type
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movq	%rax, %rbx
	leaq	8(%r14), %rdi
	movq	_LP_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_lp_gpio_reg
	cmpq	8(%r14), %rbx
	jge	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_inl
	movq	_IRQ_TYPE_EDGE_RISING@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_TRIG_SEL_BIT@GOTPCREL(%rip), %rcx
	movq	_INT_INV_BIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	notq	%rdx
	andq	%rdx, %rax
LBB0_4:
	movq	_IRQ_TYPE_EDGE_FALLING@GOTPCREL(%rip), %rcx
	testl	%r12d, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_INT_INV_BIT@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	_TRIG_SEL_BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rax
LBB0_6:
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rdx
	movq	_TRIG_SEL_BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r12d, (%rdx)
	je	LBB0_7
## %bb.8:
	orq	%rcx, %rax
	movq	_INT_INV_BIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	notq	%rsi
	andq	%rsi, %rax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_INT_INV_BIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_9:
	movq	_IRQ_TYPE_LEVEL_HIGH@GOTPCREL(%rip), %rsi
	andl	(%rsi), %r12d
	orq	%rcx, %rdx
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	movl	$0, %edi
	cmovneq	%rdx, %rdi
	orq	%rax, %rdi
	movq	%r15, %rsi
	callq	_outl
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP_CONFIG1,4,2                 ## @LP_CONFIG1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_TRIG_SEL_BIT,8,3               ## @TRIG_SEL_BIT
	.comm	_INT_INV_BIT,8,3                ## @INT_INV_BIT
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ## @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ## @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_lp_irq_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp_irq_type
_lp_irq_type:                           ; @lp_irq_type
	.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, x1
	mov	x21, x0
	bl	_irq_data_get_irq_chip_data
	bl	_gpiochip_get_data
	mov	x20, x0
	mov	x0, x21
	bl	_irqd_to_hwirq
	mov	x22, x0
	add	x0, x20, #8
Lloh0:
	adrp	x8, _LP_CONFIG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP_CONFIG1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_lp_gpio_reg
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.ge	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_inl
Lloh3:
	adrp	x8, _IRQ_TYPE_EDGE_RISING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_TYPE_EDGE_RISING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
Lloh6:
	adrp	x8, _INT_INV_BIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_INV_BIT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _TRIG_SEL_BIT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TRIG_SEL_BIT@GOTPAGEOFF]
	tst	w10, w19
	b.eq	LBB0_3
; %bb.2:
	ldr	x10, [x9]
	ldr	x11, [x8]
	orr	x10, x11, x10
	bic	x0, x0, x10
LBB0_3:
Lloh10:
	adrp	x10, _IRQ_TYPE_EDGE_FALLING@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IRQ_TYPE_EDGE_FALLING@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w19
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x8]
	orr	x10, x10, x0
	ldr	x11, [x9]
	bic	x0, x10, x11
LBB0_5:
Lloh13:
	adrp	x10, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	ldr	x9, [x9]
	tst	w10, w19
	b.eq	LBB0_8
; %bb.6:
	orr	x10, x9, x0
	ldr	x8, [x8]
	bic	x0, x10, x8
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	x8, [x8]
LBB0_9:
Lloh19:
	adrp	x10, _IRQ_TYPE_LEVEL_HIGH@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IRQ_TYPE_LEVEL_HIGH@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	x8, x8, x9
	tst	w10, w19
	csel	x8, xzr, x8, eq
	orr	x0, x8, x0
	mov	x1, x21
	bl	_outl
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_LP_CONFIG1,4,2                 ; @LP_CONFIG1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_TRIG_SEL_BIT,8,3               ; @TRIG_SEL_BIT
	.comm	_INT_INV_BIT,8,3                ; @INT_INV_BIT
	.comm	_IRQ_TYPE_EDGE_FALLING,4,2      ; @IRQ_TYPE_EDGE_FALLING
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_IRQ_TYPE_LEVEL_HIGH,4,2        ; @IRQ_TYPE_LEVEL_HIGH
	.no_dead_strip	_lp_irq_type
.subsections_via_symbols
