	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1400_clear_pending_irq
_ucb1400_clear_pending_irq:             ## @ucb1400_clear_pending_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_UCB_IE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ucb1400_reg_read
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	movq	_UCB_IE_CLEAR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_ucb1400_reg_write
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	_ucb1400_reg_write
	movq	_UCB_IE_TSPX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ucb1400_ts_irq_disable         ## TAILCALL
LBB0_2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_IE_STATUS,4,2              ## @UCB_IE_STATUS
	.comm	_UCB_IE_CLEAR,4,2               ## @UCB_IE_CLEAR
	.comm	_UCB_IE_TSPX,4,2                ## @UCB_IE_TSPX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucb1400: unexpected IE_STATUS = %#x\n"

	.no_dead_strip	_ucb1400_clear_pending_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1400_clear_pending_irq
_ucb1400_clear_pending_irq:             ; @ucb1400_clear_pending_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, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _UCB_IE_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCB_IE_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ucb1400_reg_read
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x21, _UCB_IE_CLEAR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _UCB_IE_CLEAR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_ucb1400_reg_write
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_ucb1400_reg_write
Lloh5:
	adrp	x8, _UCB_IE_TSPX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UCB_IE_TSPX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	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	_ucb1400_ts_irq_disable
LBB0_2:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_IE_STATUS,4,2              ; @UCB_IE_STATUS
	.comm	_UCB_IE_CLEAR,4,2               ; @UCB_IE_CLEAR
	.comm	_UCB_IE_TSPX,4,2                ; @UCB_IE_TSPX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucb1400: unexpected IE_STATUS = %#x\n"

	.no_dead_strip	_ucb1400_clear_pending_irq
.subsections_via_symbols
