	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_driver_status
_put_driver_status:                     ## @put_driver_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	movl	%eax, %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_DRIVER_RX_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	movl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	_DRIVER_TX_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_4:
	testl	%edx, %edx
	je	LBB0_5
## %bb.6:
	movq	_DRIVER_TXMAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %edi
	shll	%cl, %edi
	notl	%edi
	movq	_DRIVER_TXMAP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	cmpl	$0, 16(%rbx)
	jne	LBB0_14
	jmp	LBB0_8
LBB0_5:
	xorl	%edi, %edi
	cmpl	$0, 16(%rbx)
	jne	LBB0_14
LBB0_8:
	orl	%esi, %r15d
	orl	%edi, %r15d
	orl	%eax, %edx
	movl	8(%rbx), %eax
	je	LBB0_11
## %bb.9:
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_SR_RX_INT_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cosa_putstatus
	movl	$1, 8(%rbx)
	jmp	LBB0_13
LBB0_11:
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	$0, 8(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cosa_putstatus
LBB0_13:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_cosa_putdata8
LBB0_14:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRIVER_RX_READY,4,2            ## @DRIVER_RX_READY
	.comm	_DRIVER_TX_READY,4,2            ## @DRIVER_TX_READY
	.comm	_DRIVER_TXMAP_SHIFT,4,2         ## @DRIVER_TXMAP_SHIFT
	.comm	_DRIVER_TXMAP_MASK,4,2          ## @DRIVER_TXMAP_MASK
	.comm	_SR_RX_INT_ENA,4,2              ## @SR_RX_INT_ENA
	.no_dead_strip	_put_driver_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_driver_status
_put_driver_status:                     ; @put_driver_status
	.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	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _DRIVER_RX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_RX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldp	w8, w9, [x20]
	cmp	w8, #0
	csel	w10, wzr, w10, eq
Lloh3:
	adrp	x11, _DRIVER_TX_READY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRIVER_TX_READY@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w9, #0
	csel	w11, wzr, w11, eq
	cbz	w9, LBB0_2
; %bb.1:
Lloh6:
	adrp	x12, _DRIVER_TXMAP_SHIFT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _DRIVER_TXMAP_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	lsl	w12, w9, w12
Lloh9:
	adrp	x13, _DRIVER_TXMAP_MASK@GOTPAGE
Lloh10:
	ldr	x13, [x13, _DRIVER_TXMAP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w13, [x13]
	bic	w12, w13, w12
	ldr	w13, [x20, #16]
	cbnz	w13, LBB0_9
	b	LBB0_3
LBB0_2:
	mov	w12, #0
	ldr	w13, [x20, #16]
	cbnz	w13, LBB0_9
LBB0_3:
	orr	w10, w11, w10
	orr	w21, w10, w12
	ldr	w10, [x20, #8]
	orr	w8, w9, w8
	cbz	w8, LBB0_6
; %bb.4:
	cbnz	w10, LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _SR_RX_INT_ENA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SR_RX_INT_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_cosa_putstatus
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_8
LBB0_6:
	cbz	w10, LBB0_8
; %bb.7:
	str	wzr, [x20, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_cosa_putstatus
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	bl	_cosa_putdata8
LBB0_9:
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DRIVER_RX_READY,4,2            ; @DRIVER_RX_READY
	.comm	_DRIVER_TX_READY,4,2            ; @DRIVER_TX_READY
	.comm	_DRIVER_TXMAP_SHIFT,4,2         ; @DRIVER_TXMAP_SHIFT
	.comm	_DRIVER_TXMAP_MASK,4,2          ; @DRIVER_TXMAP_MASK
	.comm	_SR_RX_INT_ENA,4,2              ; @SR_RX_INT_ENA
	.no_dead_strip	_put_driver_status
.subsections_via_symbols
