	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9000_send_packet
_dm9000_send_packet:                    ## @dm9000_send_packet
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_to_dm9000_board
	movq	%rax, %rbx
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movq	_DM9000_TCCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_TCCR_IP@GOTPCREL(%rip), %rax
	movq	_TCCR_UDP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_TCCR_TCP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_3:
	movq	%rbx, %rdi
	callq	_iow
	movl	%r15d, (%rbx)
LBB0_4:
	movq	_DM9000_TXPLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_iow
	movq	_DM9000_TXPLH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$8, %r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_iow
	movq	_DM9000_TCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCR_TXREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iow                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_DM9000_TCCR,4,2                ## @DM9000_TCCR
	.comm	_TCCR_IP,4,2                    ## @TCCR_IP
	.comm	_TCCR_UDP,4,2                   ## @TCCR_UDP
	.comm	_TCCR_TCP,4,2                   ## @TCCR_TCP
	.comm	_DM9000_TXPLL,4,2               ## @DM9000_TXPLL
	.comm	_DM9000_TXPLH,4,2               ## @DM9000_TXPLH
	.comm	_DM9000_TCR,4,2                 ## @DM9000_TCR
	.comm	_TCR_TXREQ,4,2                  ## @TCR_TXREQ
	.no_dead_strip	_dm9000_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9000_send_packet
_dm9000_send_packet:                    ; @dm9000_send_packet
	.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, x2
	mov	x21, x1
	bl	_to_dm9000_board
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w21
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DM9000_TCCR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM9000_TCCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	mov	w2, #0
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _TCCR_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCCR_IP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TCCR_UDP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TCCR_UDP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _TCCR_TCP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCCR_TCP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
LBB0_4:
	mov	x0, x19
	bl	_iow
	str	w21, [x19]
LBB0_5:
Lloh15:
	adrp	x8, _DM9000_TXPLL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DM9000_TXPLL@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_iow
Lloh18:
	adrp	x8, _DM9000_TXPLH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DM9000_TXPLH@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	asr	w2, w20, #8
	mov	x0, x19
	bl	_iow
Lloh21:
	adrp	x8, _DM9000_TCR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DM9000_TCR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _TCR_TXREQ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TCR_TXREQ@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	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	_iow
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_DM9000_TCCR,4,2                ; @DM9000_TCCR
	.comm	_TCCR_IP,4,2                    ; @TCCR_IP
	.comm	_TCCR_UDP,4,2                   ; @TCCR_UDP
	.comm	_TCCR_TCP,4,2                   ; @TCCR_TCP
	.comm	_DM9000_TXPLL,4,2               ; @DM9000_TXPLL
	.comm	_DM9000_TXPLH,4,2               ; @DM9000_TXPLH
	.comm	_DM9000_TCR,4,2                 ; @DM9000_TCR
	.comm	_TCR_TXREQ,4,2                  ; @TCR_TXREQ
	.no_dead_strip	_dm9000_send_packet
.subsections_via_symbols
