	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_wol
_qlcnic_set_wol:                        ## @qlcnic_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	$0, -44(%rbp)
	movq	%rax, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_QLCNIC_WOL_CONFIG_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movq	_EIO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	addl	%eax, %edx
	je	LBB0_9
## %bb.6:
	movl	(%rbx), %eax
	btl	%eax, %ecx
	jae	LBB0_1
## %bb.7:
	movq	_QLCNIC_WOL_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	%eax, %esi
	movl	-44(%rbp), %eax
	movl	(%r13), %ecx
	addl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	movl	(%r15), %eax
	andl	(%r14), %eax
	movb	(%rbx), %cl
	movl	$1, %edx
	shlq	%cl, %rdx
	movl	%esi, %ecx
	orl	%edx, %ecx
	notl	%edx
	andl	%esi, %edx
	testl	%eax, %eax
	cmovnel	%ecx, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_QLCWR32
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLCNIC_WOL_CONFIG_NV,4,2       ## @QLCNIC_WOL_CONFIG_NV
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_WOL_CONFIG,4,2          ## @QLCNIC_WOL_CONFIG
	.no_dead_strip	_qlcnic_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_wol
_qlcnic_set_wol:                        ; @qlcnic_set_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _WAKE_MAGIC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _WAKE_MAGIC@GOTPAGEOFF]
	ldr	w9, [x21]
	bics	wzr, w8, w9
	b.eq	LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh6:
	adrp	x8, _QLCNIC_WOL_CONFIG_NV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_WOL_CONFIG_NV@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
Lloh9:
	adrp	x23, _EIO@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
	ldr	w9, [x23]
	cmn	w0, w9
	b.eq	LBB0_5
; %bb.7:
	ldr	w9, [x19]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_1
; %bb.8:
Lloh11:
	adrp	x22, _QLCNIC_WOL_CONFIG@GOTPAGE
Lloh12:
	ldr	x22, [x22, _QLCNIC_WOL_CONFIG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
	ldr	w9, [x23]
	cmn	w0, w9
	b.eq	LBB0_5
; %bb.9:
	ldr	w9, [x20]
	ldr	w10, [x21]
	ldr	w11, [x19]
	mov	w12, #1
	lsl	x11, x12, x11
	orr	w12, w8, w11
	bic	w8, w8, w11
	tst	w10, w9
	csel	w2, w8, w12, eq
	ldr	w1, [x22]
	mov	x0, x19
	bl	_QLCWR32
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLCNIC_WOL_CONFIG_NV,4,2       ; @QLCNIC_WOL_CONFIG_NV
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_WOL_CONFIG,4,2          ; @QLCNIC_WOL_CONFIG
	.no_dead_strip	_qlcnic_set_wol
.subsections_via_symbols
