	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_dma_unaligned
_bgmac_dma_unaligned:                   ## @bgmac_dma_unaligned
	.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	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$129, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.2:
	movq	_BGMAC_DMA_TX_RINGLO@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_3:
	movq	_BGMAC_DMA_RX_RINGLO@GOTPCREL(%rip), %r15
LBB0_4:
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	$4080, %edx                     ## imm = 0xFF0
	callq	_bgmac_write
	movq	(%r15), %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_bgmac_read
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGMAC_DMA_TX_RINGLO,8,3        ## @BGMAC_DMA_TX_RINGLO
	.comm	_BGMAC_DMA_RX_RINGLO,8,3        ## @BGMAC_DMA_RX_RINGLO
	.no_dead_strip	_bgmac_dma_unaligned
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_dma_unaligned
_bgmac_dma_unaligned:                   ; @bgmac_dma_unaligned
	.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, x1
	mov	x19, x0
	cmp	w2, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _BGMAC_DMA_TX_RINGLO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BGMAC_DMA_TX_RINGLO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _BGMAC_DMA_RX_RINGLO@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BGMAC_DMA_RX_RINGLO@GOTPAGEOFF]
LBB0_4:
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #4080
	bl	_bgmac_write
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x19
	bl	_bgmac_read
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BGMAC_DMA_TX_RINGLO,8,3        ; @BGMAC_DMA_TX_RINGLO
	.comm	_BGMAC_DMA_RX_RINGLO,8,3        ; @BGMAC_DMA_RX_RINGLO
	.no_dead_strip	_bgmac_dma_unaligned
.subsections_via_symbols
