	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1x00_disable_irq            ## -- Begin function ucb1x00_disable_irq
	.p2align	4, 0x90
_ucb1x00_disable_irq:                   ## @ucb1x00_disable_irq
	.cfi_startproc
## %bb.0:
	cmpl	$15, %esi
	ja	LBB0_6
## %bb.1:
	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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_ucb1x00_enable
	movq	_UCB_RISING@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	btrl	%r15d, %edx
	movl	%edx, (%rbx)
	movq	_UCB_IE_RIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ucb1x00_reg_write
LBB0_3:
	movq	_UCB_FALLING@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edx
	btrl	%r15d, %edx
	movl	%edx, 4(%rbx)
	movq	_UCB_IE_FAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ucb1x00_reg_write
LBB0_5:
	movq	%rbx, %rdi
	callq	_ucb1x00_disable
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCB_RISING,4,2                 ## @UCB_RISING
	.comm	_UCB_IE_RIS,4,2                 ## @UCB_IE_RIS
	.comm	_UCB_FALLING,4,2                ## @UCB_FALLING
	.comm	_UCB_IE_FAL,4,2                 ## @UCB_IE_FAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ucb1x00_disable_irq            ; -- Begin function ucb1x00_disable_irq
	.p2align	2
_ucb1x00_disable_irq:                   ; @ucb1x00_disable_irq
	.cfi_startproc
; %bb.0:
	cmp	w1, #15
	b.hi	LBB0_6
; %bb.1:
	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	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ucb1x00_enable
Lloh0:
	adrp	x8, _UCB_RISING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UCB_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	w9, [x19]
	bic	w2, w9, w8
	str	w2, [x19]
Lloh3:
	adrp	x8, _UCB_IE_RIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UCB_IE_RIS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ucb1x00_reg_write
LBB0_3:
Lloh6:
	adrp	x8, _UCB_FALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UCB_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	w9, [x19, #4]
	bic	w2, w9, w8
	str	w2, [x19, #4]
Lloh9:
	adrp	x8, _UCB_IE_FAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UCB_IE_FAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ucb1x00_reg_write
LBB0_5:
	mov	x0, x19
	bl	_ucb1x00_disable
	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	_spin_unlock_irqrestore
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UCB_RISING,4,2                 ; @UCB_RISING
	.comm	_UCB_IE_RIS,4,2                 ; @UCB_IE_RIS
	.comm	_UCB_FALLING,4,2                ; @UCB_FALLING
	.comm	_UCB_IE_FAL,4,2                 ; @UCB_IE_FAL
.subsections_via_symbols
