	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_set_wol
_typhoon_set_wol:                       ## @typhoon_set_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
	movl	(%rbx), %edx
	movq	_WAKE_PHY@GOTPCREL(%rip), %rdi
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	orl	(%rdi), %ecx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_6
LBB0_2:
	movl	$0, (%rax)
	xorl	%ecx, %ecx
	movl	$0, %ebx
	testl	%edx, (%rdi)
	je	LBB0_4
## %bb.3:
	movq	_TYPHOON_WAKE_LINK_EVENT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	movl	%ebx, (%rax)
LBB0_4:
	testl	%edx, (%rsi)
	je	LBB0_6
## %bb.5:
	movq	_TYPHOON_WAKE_MAGIC_PKT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ebx
	movl	%ebx, (%rax)
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_set_wol
_typhoon_set_wol:                       ; @typhoon_set_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
	ldr	w8, [x19]
Lloh0:
	adrp	x10, _WAKE_PHY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WAKE_PHY@GOTPAGEOFF]
	ldr	w11, [x10]
Lloh2:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w12, [x9]
	orr	w11, w12, w11
	bics	wzr, w8, w11
	b.eq	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_8
LBB0_2:
	str	wzr, [x0]
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x10, _TYPHOON_WAKE_LINK_EVENT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TYPHOON_WAKE_LINK_EVENT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	str	w10, [x0]
	b	LBB0_5
LBB0_4:
	mov	w10, #0
LBB0_5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #0
Lloh10:
	adrp	x9, _TYPHOON_WAKE_MAGIC_PKT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TYPHOON_WAKE_MAGIC_PKT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x0]
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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_set_wol
.subsections_via_symbols
