	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_get_wol
_lan78xx_get_wol:                       ## @lan78xx_get_wol
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %r15
	movl	(%rbx), %edi
	callq	_usb_autopm_get_interface
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	_USB_CFG0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lan78xx_read_reg
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	$0, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_USB_CFG_RMT_WKP_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_4
## %bb.3:
	movq	_WAKE_ALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	(%r15), %eax
LBB0_5:
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	callq	_usb_autopm_put_interface
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CFG0,4,2                   ## @USB_CFG0
	.comm	_USB_CFG_RMT_WKP_,4,2           ## @USB_CFG_RMT_WKP_
	.comm	_WAKE_ALL,8,3                   ## @WAKE_ALL
	.no_dead_strip	_lan78xx_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_get_wol
_lan78xx_get_wol:                       ; @lan78xx_get_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _USB_CFG0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_CFG0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_lan78xx_read_reg
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
	mov	w8, #0
	str	xzr, [x19, #8]
	b	LBB0_5
LBB0_3:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _USB_CFG_RMT_WKP_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_CFG_RMT_WKP_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:
Lloh6:
	adrp	x8, _WAKE_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WAKE_ALL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w8, [x21]
LBB0_5:
	str	w8, [x19]
	ldr	w0, [x20]
	bl	_usb_autopm_put_interface
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CFG0,4,2                   ; @USB_CFG0
	.comm	_USB_CFG_RMT_WKP_,4,2           ; @USB_CFG_RMT_WKP_
	.comm	_WAKE_ALL,8,3                   ; @WAKE_ALL
	.no_dead_strip	_lan78xx_get_wol
.subsections_via_symbols
