	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_irq
_configure_irq:                         ## @configure_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	_HPEE_IRQ_MAX_ENT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	movl	$2, %eax
	movq	_HPEE_IRQ_CHANNEL_MASK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_get_8
	movl	%eax, %ebx
	movl	(%r13), %esi
	andl	%eax, %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_cont
	movl	(%r13), %edi
	andl	%ebx, %edi
	movq	_HPEE_IRQ_TRIG_LEVEL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_eisa_make_irq_level
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_eisa_make_irq_edge
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_HPEE_IRQ_MORE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	addq	$2, %r12
	leal	2(%r15), %eax
	movq	_HPEE_IRQ_MAX_ENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jl	LBB0_4
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPEE_IRQ_MAX_ENT,4,2           ## @HPEE_IRQ_MAX_ENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ %d "

	.comm	_HPEE_IRQ_CHANNEL_MASK,4,2      ## @HPEE_IRQ_CHANNEL_MASK
	.comm	_HPEE_IRQ_TRIG_LEVEL,4,2        ## @HPEE_IRQ_TRIG_LEVEL
	.comm	_HPEE_IRQ_MORE,4,2              ## @HPEE_IRQ_MORE
	.no_dead_strip	_configure_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_irq
_configure_irq:                         ; @configure_irq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x22, _HPEE_IRQ_MAX_ENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPEE_IRQ_MAX_ENT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x8, #0
	mov	w23, #0
Lloh2:
	adrp	x24, _HPEE_IRQ_CHANNEL_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HPEE_IRQ_CHANNEL_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HPEE_IRQ_TRIG_LEVEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HPEE_IRQ_TRIG_LEVEL@GOTPAGEOFF]
Lloh6:
	adrp	x26, _HPEE_IRQ_MORE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _HPEE_IRQ_MORE@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x8
	add	x0, x19, x8
	bl	_get_8
	mov	x21, x0
	ldr	w8, [x24]
	and	w1, w8, w0
	mov	x0, x20
	bl	_pr_cont
	ldr	w8, [x25]
	ldr	w9, [x24]
	and	w0, w9, w21
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_eisa_make_irq_level
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_eisa_make_irq_edge
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w9, [x22]
	add	x8, x27, #2
	cmp	w23, w9
	b.lt	LBB0_2
LBB0_7:
	add	w0, w27, #2
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HPEE_IRQ_MAX_ENT,4,2           ; @HPEE_IRQ_MAX_ENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ %d "

	.comm	_HPEE_IRQ_CHANNEL_MASK,4,2      ; @HPEE_IRQ_CHANNEL_MASK
	.comm	_HPEE_IRQ_TRIG_LEVEL,4,2        ; @HPEE_IRQ_TRIG_LEVEL
	.comm	_HPEE_IRQ_MORE,4,2              ; @HPEE_IRQ_MORE
	.no_dead_strip	_configure_irq
.subsections_via_symbols
