	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf7242_xmit
_adf7242_xmit:                          ## @adf7242_xmit
	.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	%rsi, %r12
	movq	(%rdi), %rbx
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_disable_irq
	movq	_FLAG_XMIT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_set_bit
	leaq	28(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_reinit_completion
	movq	_CMD_RC_PHY_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adf7242_cmd
	movq	%rbx, %rdi
	callq	_adf7242_clear_irqstat
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_adf7242_write_fbuf
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_CMD_RC_CSMACA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_adf7242_cmd
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	callq	_enable_irq
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_completion_interruptible_timeout
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rdx
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	(%rax), %rdx
	je	LBB0_9
## %bb.7:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ECOMM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r12d
	jmp	LBB0_9
LBB0_5:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r12d
LBB0_9:
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_adf7242_cmd_rx
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_XMIT,4,2                  ## @FLAG_XMIT
	.comm	_CMD_RC_PHY_RDY,4,2             ## @CMD_RC_PHY_RDY
	.comm	_CMD_RC_CSMACA,4,2              ## @CMD_RC_CSMACA
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for TX interrupt\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Error xmit: Retry count exceeded Status=0x%x\n"

	.comm	_ECOMM,4,2                      ## @ECOMM
	.no_dead_strip	_adf7242_xmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf7242_xmit
_adf7242_xmit:                          ; @adf7242_xmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	ldr	x19, [x0]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_disable_irq
Lloh0:
	adrp	x23, _FLAG_XMIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLAG_XMIT@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x20, x19, #8
	mov	x1, x20
	bl	_set_bit
	add	x0, x19, #28
	bl	_cancel_delayed_work_sync
	add	x21, x19, #24
	mov	x0, x21
	bl	_reinit_completion
Lloh2:
	adrp	x8, _CMD_RC_PHY_RDY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_RC_PHY_RDY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adf7242_cmd
	mov	x0, x19
	bl	_adf7242_clear_irqstat
	ldp	w2, w1, [x22]
	mov	x0, x19
	bl	_adf7242_write_fbuf
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.1:
Lloh5:
	adrp	x8, _CMD_RC_CSMACA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_RC_CSMACA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adf7242_cmd
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_enable_irq
Lloh8:
	adrp	x8, _HZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	x0, x21
	bl	_wait_for_completion_interruptible_timeout
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	cbz	w22, LBB0_6
; %bb.4:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _SUCCESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	w22, #0
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19, #16]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh20:
	adrp	x8, _ECOMM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ECOMM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x19
	bl	_adf7242_cmd_rx
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_XMIT,4,2                  ; @FLAG_XMIT
	.comm	_CMD_RC_PHY_RDY,4,2             ; @CMD_RC_PHY_RDY
	.comm	_CMD_RC_CSMACA,4,2              ; @CMD_RC_CSMACA
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for TX interrupt\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Error xmit: Retry count exceeded Status=0x%x\n"

	.comm	_ECOMM,4,2                      ; @ECOMM
	.no_dead_strip	_adf7242_xmit
.subsections_via_symbols
