	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmac_reset_and_enable
_bmac_reset_and_enable:                 ## @bmac_reset_and_enable
	.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, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_bmac_enable_and_reset_chip
	movq	%r14, %rdi
	callq	_bmac_init_tx_ring
	movq	%rbx, %rdi
	callq	_bmac_init_rx_ring
	movq	%rbx, %rdi
	callq	_bmac_init_chip
	movq	%rbx, %rdi
	callq	_bmac_start_chip
	movq	_INTDISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EnableNormal@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bmwrite
	movq	$0, 8(%r14)
	movq	_ETHERMINPACKET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_skb_put_zero
	movq	%rax, %r12
	movl	(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	(%r13), %rdx
	addq	%rdx, %r12
	movl	(%rbx), %esi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bmac_transmit_packet
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTDISABLE,4,2                 ## @INTDISABLE
	.comm	_EnableNormal,4,2               ## @EnableNormal
	.comm	_ETHERMINPACKET,4,2             ## @ETHERMINPACKET
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_bmac_reset_and_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmac_reset_and_enable
_bmac_reset_and_enable:                 ; @bmac_reset_and_enable
	.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
	bl	_netdev_priv
	mov	x20, x0
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_bmac_enable_and_reset_chip
	mov	x0, x20
	bl	_bmac_init_tx_ring
	mov	x0, x19
	bl	_bmac_init_rx_ring
	mov	x0, x19
	bl	_bmac_init_chip
	mov	x0, x19
	bl	_bmac_start_chip
Lloh0:
	adrp	x8, _INTDISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTDISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EnableNormal@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EnableNormal@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_bmwrite
	str	xzr, [x20, #8]
Lloh6:
	adrp	x22, _ETHERMINPACKET@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ETHERMINPACKET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w1, [x22]
	bl	_skb_put_zero
	mov	x22, x0
	ldr	w1, [x19]
Lloh8:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_memcpy
	ldrsw	x2, [x23]
	add	x0, x22, x2
	ldr	w1, [x19]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	mov	x0, x21
	mov	x1, x19
	bl	_bmac_transmit_packet
LBB0_2:
	mov	x0, x20
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INTDISABLE,4,2                 ; @INTDISABLE
	.comm	_EnableNormal,4,2               ; @EnableNormal
	.comm	_ETHERMINPACKET,4,2             ; @ETHERMINPACKET
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_bmac_reset_and_enable
.subsections_via_symbols
