	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intc_irqpin_irq_set_type
_intc_irqpin_irq_set_type:              ## @intc_irqpin_irq_set_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	movq	_intc_irqpin_sense@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movb	(%rax,%rsi), %bl
	callq	_irq_data_get_irq_chip_data
	movq	_INTC_IRQ_SENSE_VALID@GOTPCREL(%rip), %r12
	testb	%bl, (%r12)
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_irqd_to_hwirq
	xorb	(%r12), %bl
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intc_irqpin_set_sense          ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_intc_irqpin_sense,8,3          ## @intc_irqpin_sense
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	_INTC_IRQ_SENSE_VALID,1,0       ## @INTC_IRQ_SENSE_VALID
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_intc_irqpin_irq_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intc_irqpin_irq_set_type
_intc_irqpin_irq_set_type:              ; @intc_irqpin_irq_set_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, x0
Lloh0:
	adrp	x8, _intc_irqpin_sense@GOTPAGE
Lloh1:
	ldr	x8, [x8, _intc_irqpin_sense@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	w9, [x9]
	mov	w10, w1
	and	x9, x9, x10
	ldrb	w21, [x8, x9]
	bl	_irq_data_get_irq_chip_data
Lloh6:
	adrp	x22, _INTC_IRQ_SENSE_VALID@GOTPAGE
Lloh7:
	ldr	x22, [x22, _INTC_IRQ_SENSE_VALID@GOTPAGEOFF]
	ldrb	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_irqd_to_hwirq
	mov	x1, x0
	ldrb	w8, [x22]
	eor	w2, w8, w21
	mov	x0, x20
	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
	b	_intc_irqpin_set_sense
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_intc_irqpin_sense,8,3          ; @intc_irqpin_sense
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	_INTC_IRQ_SENSE_VALID,1,0       ; @INTC_IRQ_SENSE_VALID
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_intc_irqpin_irq_set_type
.subsections_via_symbols
