	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_set_wol
_ql_set_wol:                            ## @ql_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
	movq	8(%rax), %rcx
	movzwl	(%rcx), %ecx
	movq	_QLGE_MEZZ_SSYS_ID_068@GOTPCREL(%rip), %rdx
	cmpw	(%rdx), %cx
	je	LBB0_3
## %bb.1:
	movq	_QLGE_MEZZ_SSYS_ID_180@GOTPCREL(%rip), %rdx
	cmpw	(%rdx), %cx
	je	LBB0_3
## %bb.2:
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %r8d
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %r8d
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	%r8d, (%rax)
	movq	_drv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_netif_info
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLGE_MEZZ_SSYS_ID_068,2,1      ## @QLGE_MEZZ_SSYS_ID_068
	.comm	_QLGE_MEZZ_SSYS_ID_180,2,1      ## @QLGE_MEZZ_SSYS_ID_180
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WOL is only supported for mezz card\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Set wol option 0x%x\n"

	.no_dead_strip	_ql_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_set_wol
_ql_set_wol:                            ; @ql_set_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	ldrh	w8, [x8]
Lloh0:
	adrp	x9, _QLGE_MEZZ_SSYS_ID_068@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLGE_MEZZ_SSYS_ID_068@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh2:
	adrp	x10, _QLGE_MEZZ_SSYS_ID_180@GOTPAGE
Lloh3:
	ldr	x10, [x10, _QLGE_MEZZ_SSYS_ID_180@GOTPAGEOFF]
	ldrh	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh4:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _drv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x0, #4]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	bl	_netif_info
Lloh14:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	str	w8, [x0]
Lloh16:
	adrp	x9, _drv@GOTPAGE
Lloh17:
	ldr	x9, [x9, _drv@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	ldr	w2, [x0, #4]
	str	x8, [sp]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_netif_info
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_QLGE_MEZZ_SSYS_ID_068,2,1      ; @QLGE_MEZZ_SSYS_ID_068
	.comm	_QLGE_MEZZ_SSYS_ID_180,2,1      ; @QLGE_MEZZ_SSYS_ID_180
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WOL is only supported for mezz card\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Set wol option 0x%x\n"

	.no_dead_strip	_ql_set_wol
.subsections_via_symbols
