	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_ethtool_set_wol
_aq_ethtool_set_wol:                    ## @aq_ethtool_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_pci_dev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %rdi
	callq	_aq_nic_get_cfg
	movl	(%r15), %esi
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rdx
	movq	_AQ_NIC_WOL_ENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%esi, (%rdx)
	je	LBB0_2
## %bb.1:
	orl	%ecx, (%rax)
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	%ecx, (%rax)
LBB0_3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_set_wakeup_enable       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_AQ_NIC_WOL_ENABLED,4,2         ## @AQ_NIC_WOL_ENABLED
	.no_dead_strip	_aq_ethtool_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_ethtool_set_wol
_aq_ethtool_set_wol:                    ; @aq_ethtool_set_wol
	.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	x21, x0
	ldr	w0, [x0]
	bl	_to_pci_dev
	mov	x19, x0
	mov	x0, x21
	bl	_netdev_priv
	bl	_aq_nic_get_cfg
Lloh0:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _AQ_NIC_WOL_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_NIC_WOL_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w9, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x0]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x0]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x0]
	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	_device_set_wakeup_enable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_AQ_NIC_WOL_ENABLED,4,2         ; @AQ_NIC_WOL_ENABLED
	.no_dead_strip	_aq_ethtool_set_wol
.subsections_via_symbols
