	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enc28j60_lowpower
_enc28j60_lowpower:                     ## @enc28j60_lowpower
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_netif_msg_drv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
LBB0_2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_ECON1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ECON1_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nolock_reg_bfclr
	movq	_ESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESTAT_RXBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_poll_ready
	movl	(%r14), %esi
	movq	_ECON1_TXRTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_poll_ready
	movq	_ECON2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECON2_PWRSV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nolock_reg_bfset
	jmp	LBB0_5
LBB0_4:
	movq	_ECON2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECON2_PWRSV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_nolock_reg_bfclr
	movq	_ESTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ESTAT_CLKRDY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_poll_ready
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s power...\n"

L_.str.1:                               ## @.str.1
	.asciz	"low"

L_.str.2:                               ## @.str.2
	.asciz	"high"

	.comm	_ECON1,4,2                      ## @ECON1
	.comm	_ECON1_RXEN,4,2                 ## @ECON1_RXEN
	.comm	_ESTAT,4,2                      ## @ESTAT
	.comm	_ESTAT_RXBUSY,4,2               ## @ESTAT_RXBUSY
	.comm	_ECON1_TXRTS,4,2                ## @ECON1_TXRTS
	.comm	_ECON2,4,2                      ## @ECON2
	.comm	_ECON2_PWRSV,4,2                ## @ECON2_PWRSV
	.comm	_ESTAT_CLKRDY,4,2               ## @ESTAT_CLKRDY
	.no_dead_strip	_enc28j60_lowpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enc28j60_lowpower
_enc28j60_lowpower:                     ; @enc28j60_lowpower
	.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
	ldr	x21, [x0, #8]
	bl	_netif_msg_drv
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	cbz	w20, LBB0_4
; %bb.3:
Lloh6:
	adrp	x20, _ECON1@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ECON1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _ECON1_RXEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECON1_RXEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nolock_reg_bfclr
Lloh11:
	adrp	x8, _ESTAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESTAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _ESTAT_RXBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESTAT_RXBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_poll_ready
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _ECON1_TXRTS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECON1_TXRTS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_poll_ready
Lloh20:
	adrp	x8, _ECON2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ECON2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _ECON2_PWRSV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ECON2_PWRSV@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nolock_reg_bfset
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _ECON2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ECON2@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _ECON2_PWRSV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ECON2_PWRSV@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_nolock_reg_bfclr
Lloh32:
	adrp	x8, _ESTAT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ESTAT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _ESTAT_CLKRDY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ESTAT_CLKRDY@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_poll_ready
LBB0_5:
	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	_mutex_unlock
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s power...\n"

l_.str.1:                               ; @.str.1
	.asciz	"low"

l_.str.2:                               ; @.str.2
	.asciz	"high"

	.comm	_ECON1,4,2                      ; @ECON1
	.comm	_ECON1_RXEN,4,2                 ; @ECON1_RXEN
	.comm	_ESTAT,4,2                      ; @ESTAT
	.comm	_ESTAT_RXBUSY,4,2               ; @ESTAT_RXBUSY
	.comm	_ECON1_TXRTS,4,2                ; @ECON1_TXRTS
	.comm	_ECON2,4,2                      ; @ECON2
	.comm	_ECON2_PWRSV,4,2                ; @ECON2_PWRSV
	.comm	_ESTAT_CLKRDY,4,2               ; @ESTAT_CLKRDY
	.no_dead_strip	_enc28j60_lowpower
.subsections_via_symbols
