	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_get_wol
_typhoon_get_wol:                       ## @typhoon_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdx
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rdx), %esi
	movl	%esi, (%rbx)
	movl	$0, 4(%rbx)
	movl	(%rax), %eax
	movq	_TYPHOON_WAKE_LINK_EVENT@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.2:
	movl	(%rdx), %edx
	movl	%edx, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	_TYPHOON_WAKE_MAGIC_PKT@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.4:
	orl	(%rcx), %edx
	movl	%edx, 4(%rbx)
LBB0_5:
	addq	$8, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_TYPHOON_WAKE_LINK_EVENT,4,2    ## @TYPHOON_WAKE_LINK_EVENT
	.comm	_TYPHOON_WAKE_MAGIC_PKT,4,2     ## @TYPHOON_WAKE_MAGIC_PKT
	.no_dead_strip	_typhoon_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_get_wol
_typhoon_get_wol:                       ; @typhoon_get_wol
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
Lloh0:
	adrp	x10, _WAKE_PHY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WAKE_PHY@GOTPAGEOFF]
	ldr	w9, [x10]
Lloh2:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w11, [x8]
	orr	w9, w11, w9
	stp	w9, wzr, [x19]
	ldr	w9, [x0]
Lloh4:
	adrp	x11, _TYPHOON_WAKE_LINK_EVENT@GOTPAGE
Lloh5:
	ldr	x11, [x11, _TYPHOON_WAKE_LINK_EVENT@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x10]
	str	w10, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	w10, #0
LBB0_3:
Lloh7:
	adrp	x11, _TYPHOON_WAKE_MAGIC_PKT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _TYPHOON_WAKE_MAGIC_PKT@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x19, #4]
LBB0_5:
	add	x0, x19, #8
	mov	w1, #0
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_TYPHOON_WAKE_LINK_EVENT,4,2    ; @TYPHOON_WAKE_LINK_EVENT
	.comm	_TYPHOON_WAKE_MAGIC_PKT,4,2     ; @TYPHOON_WAKE_MAGIC_PKT
	.no_dead_strip	_typhoon_get_wol
.subsections_via_symbols
