	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1x00_irq
_ucb1x00_irq:                           ## @ucb1x00_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_ucb1x00_enable
	movq	_UCB_IE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ucb1x00_reg_read
	movl	%eax, %r15d
	movq	_UCB_IE_CLEAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ucb1x00_reg_write
	movl	(%rbx), %esi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ucb1x00_reg_write
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r15b
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-8(%rbx), %esi
	movl	%r12d, %edi
	callq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$14, %r12d
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	movl	%r15d, %eax
	shrl	%eax
	addq	$16, %rbx
	cmpl	$1, %r15d
	movl	%eax, %r15d
	ja	LBB0_2
LBB0_7:
	movq	%r14, %rdi
	callq	_ucb1x00_disable
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_IE_STATUS,4,2              ## @UCB_IE_STATUS
	.comm	_UCB_IE_CLEAR,4,2               ## @UCB_IE_CLEAR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ucb1x00_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1x00_irq
_ucb1x00_irq:                           ; @ucb1x00_irq
	.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	x0, x1
	bl	_ucb1x00_enable
Lloh0:
	adrp	x8, _UCB_IE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCB_IE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ucb1x00_reg_read
	mov	x20, x0
Lloh3:
	adrp	x21, _UCB_IE_CLEAR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _UCB_IE_CLEAR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_ucb1x00_reg_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_ucb1x00_reg_write
	cbz	w20, LBB0_7
; %bb.1:
	mov	w21, #0
	ldr	x8, [x19]
	add	x22, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w20, #0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w1, [x22, #-8]
	mov	x0, x21
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w21, #14
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	lsr	w8, w20, #1
	add	x22, x22, #16
	cmp	w20, #1
	mov	x20, x8
	b.hi	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_ucb1x00_disable
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_IE_STATUS,4,2              ; @UCB_IE_STATUS
	.comm	_UCB_IE_CLEAR,4,2               ; @UCB_IE_CLEAR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ucb1x00_irq
.subsections_via_symbols
