	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_driver_status_nolock
_put_driver_status_nolock:              ## @put_driver_status_nolock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	4(%r14), %eax
	movq	_DRIVER_RX_READY@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	$0, %r12d
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_DRIVER_TX_READY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	_DRIVER_TXMAP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %ebx
	shll	%cl, %ebx
	notl	%ebx
	movq	_DRIVER_TXMAP_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
LBB0_2:
	movl	(%rdx), %r13d
	xorl	%r15d, %r15d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	orl	%edi, %eax
	setne	%al
	je	LBB0_4
## %bb.3:
	movq	_SR_RX_INT_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	movb	%al, %r15b
	movq	%r14, %rdi
	callq	_cosa_putstatus
	movl	%r15d, 8(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %r13d
	orl	%ebx, %r12d
	orl	%r13d, %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cosa_putdata8                  ## 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_nolock
.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_nolock
_put_driver_status_nolock:              ; @put_driver_status_nolock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DRIVER_RX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRIVER_RX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldp	w21, w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _DRIVER_TX_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRIVER_TX_READY@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x9]
Lloh6:
	adrp	x9, _DRIVER_TXMAP_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRIVER_TXMAP_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh9:
	adrp	x10, _DRIVER_TXMAP_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRIVER_TXMAP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	bic	w23, w10, w9
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	mov	w23, #0
LBB0_3:
	orr	w8, w8, w21
Lloh12:
	adrp	x9, _SR_RX_INT_ENA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SR_RX_INT_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w1, wzr, w9, eq
	cset	w24, ne
	mov	x0, x19
	bl	_cosa_putstatus
	str	w24, [x19, #8]
	cmp	w21, #0
	csel	w8, wzr, w20, eq
	orr	w8, w22, w8
	orr	w1, w8, w23
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_cosa_putdata8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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_nolock
.subsections_via_symbols
