	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc13xxx_irq_status             ## -- Begin function mc13xxx_irq_status
	.p2align	4, 0x90
_mc13xxx_irq_status:                    ## @mc13xxx_irq_status
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %ebx
	leal	-24(%rbx), %ecx
	cmpl	$24, %esi
	movq	_MC13XXX_IRQMASK1@GOTPCREL(%rip), %rax
	cmovlq	_MC13XXX_IRQMASK0@GOTPCREL(%rip), %rax
	movq	_MC13XXX_IRQSTAT1@GOTPCREL(%rip), %rdx
	cmovlq	_MC13XXX_IRQSTAT0@GOTPCREL(%rip), %rdx
	movzbl	%cl, %ecx
	cmovll	%esi, %ecx
	movl	$1, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	%rdi, %r12
	movl	(%rax), %r13d
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %edi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_mc13xxx_reg_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	-52(%rbp), %eax
	andl	%r14d, %eax
	movl	%eax, (%r15)
LBB0_6:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_mc13xxx_reg_read
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	andl	-48(%rbp), %r14d
	movl	%r14d, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MC13XXX_IRQMASK0,4,2           ## @MC13XXX_IRQMASK0
	.comm	_MC13XXX_IRQMASK1,4,2           ## @MC13XXX_IRQMASK1
	.comm	_MC13XXX_IRQSTAT0,4,2           ## @MC13XXX_IRQSTAT0
	.comm	_MC13XXX_IRQSTAT1,4,2           ## @MC13XXX_IRQSTAT1
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mc13xxx_irq_status             ; -- Begin function mc13xxx_irq_status
	.p2align	2
_mc13xxx_irq_status:                    ; @mc13xxx_irq_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x8, _MC13XXX_IRQMASK0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MC13XXX_IRQMASK0@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MC13XXX_IRQMASK1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MC13XXX_IRQMASK1@GOTPAGEOFF]
	subs	w10, w1, #24
	csel	x8, x8, x9, lt
Lloh4:
	adrp	x9, _MC13XXX_IRQSTAT0@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MC13XXX_IRQSTAT0@GOTPAGEOFF]
Lloh6:
	adrp	x11, _MC13XXX_IRQSTAT1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MC13XXX_IRQSTAT1@GOTPAGEOFF]
	csel	x9, x9, x11, lt
	csel	w25, w1, w10, lt
	tbnz	w1, #31, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w23, [x8]
	ldr	w22, [x9]
	ldr	w0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, w24
	b.le	LBB0_8
; %bb.2:
	mov	w8, #1
	lsl	w24, w8, w25
	cbz	x21, LBB0_5
; %bb.3:
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_mc13xxx_reg_read
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	and	w8, w8, w24
	str	w8, [x21]
LBB0_5:
	cbz	x19, LBB0_10
; %bb.6:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_mc13xxx_reg_read
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w8, [sp, #8]
	and	w8, w8, w24
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
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
	add	sp, sp, #96
	ret
LBB0_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MC13XXX_IRQMASK0,4,2           ; @MC13XXX_IRQMASK0
	.comm	_MC13XXX_IRQMASK1,4,2           ; @MC13XXX_IRQMASK1
	.comm	_MC13XXX_IRQSTAT0,4,2           ; @MC13XXX_IRQSTAT0
	.comm	_MC13XXX_IRQSTAT1,4,2           ; @MC13XXX_IRQSTAT1
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
