	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_wol                         ## -- Begin function ql_wol
	.p2align	4, 0x90
_ql_wol:                                ## @ql_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	_WAKE_ARP@GOTPCREL(%rip), %rax
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WAKE_PHY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %r15
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%rdi), %r8d
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WAKE_BCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r8d, %ecx
	je	LBB0_2
## %bb.1:
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MB_WOL_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ql_mb_wol_set_magic
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movl	(%rdx), %r8d
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_9
LBB0_5:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	movl	(%rdx), %r8d
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_info
	movq	_MB_WOL_MAGIC_PKT@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %r8d
LBB0_6:
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.8:
	movq	_MB_WOL_MODE_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ql_mb_wol_mode
	movl	%eax, %ebx
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	testl	%ebx, %ebx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	movl	(%rdx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_WOL_DISABLE,4,2             ## @MB_WOL_DISABLE
	.comm	_WAKE_ARP,4,2                   ## @WAKE_ARP
	.comm	_WAKE_MAGICSECURE,4,2           ## @WAKE_MAGICSECURE
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_ifdown,4,2                     ## @ifdown
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported WOL paramter. qdev->wol = 0x%x.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set magic packet on %s.\n"

	.comm	_drv,4,2                        ## @drv
L_.str.2:                               ## @.str.2
	.asciz	"Enabled magic packet successfully on %s.\n"

	.comm	_MB_WOL_MAGIC_PKT,4,2           ## @MB_WOL_MAGIC_PKT
	.comm	_MB_WOL_MODE_ON,4,2             ## @MB_WOL_MODE_ON
L_.str.3:                               ## @.str.3
	.asciz	"WOL %s (wol code 0x%x) on %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Sucessfully set"

L_.str.5:                               ## @.str.5
	.asciz	"Failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ql_wol                         ; -- Begin function ql_wol
	.p2align	2
_ql_wol:                                ; @ql_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _WAKE_ARP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAKE_ARP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WAKE_MAGICSECURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WAKE_MAGICSECURE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WAKE_PHY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WAKE_PHY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w8, w9
Lloh9:
	adrp	x10, _WAKE_UCAST@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WAKE_UCAST@GOTPAGEOFF]
	ldr	w8, [x0]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _WAKE_MCAST@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WAKE_MCAST@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _WAKE_BCAST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _WAKE_BCAST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh18:
	adrp	x9, _ifdown@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ifdown@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	ldr	x2, [x19, #8]
	str	x8, [sp]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_2:
Lloh26:
	adrp	x9, _MB_WOL_DISABLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _MB_WOL_DISABLE@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x9]
Lloh29:
	adrp	x9, _WAKE_MAGIC@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WAKE_MAGIC@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_ql_mb_wol_set_magic
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh32:
	adrp	x8, _ifdown@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldr	w8, [x2]
	str	x8, [sp]
Lloh35:
	adrp	x3, l_.str.1@PAGE
Lloh36:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh37:
	adrp	x8, _drv@GOTPAGE
Lloh38:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldr	w4, [x2]
Lloh40:
	adrp	x3, l_.str.2@PAGE
Lloh41:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netif_info
Lloh42:
	adrp	x8, _MB_WOL_MAGIC_PKT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MB_WOL_MAGIC_PKT@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w21, w8, w21
	ldr	w8, [x19]
LBB0_6:
	cbz	w8, LBB0_9
; %bb.7:
Lloh45:
	adrp	x8, _MB_WOL_MODE_ON@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MB_WOL_MODE_ON@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w21, w8, w21
	mov	x0, x19
	mov	x1, x21
	bl	_ql_mb_wol_mode
	mov	x20, x0
Lloh48:
	adrp	x8, _drv@GOTPAGE
Lloh49:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, l_.str.5@PAGE
Lloh52:
	add	x8, x8, l_.str.5@PAGEOFF
	ldr	x2, [x19, #8]
Lloh53:
	adrp	x9, l_.str.4@PAGE
Lloh54:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x2]
	stp	x21, x9, [sp, #8]
	str	x8, [sp]
Lloh55:
	adrp	x3, l_.str.3@PAGE
Lloh56:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netif_err
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_WOL_DISABLE,4,2             ; @MB_WOL_DISABLE
	.comm	_WAKE_ARP,4,2                   ; @WAKE_ARP
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_ifdown,4,2                     ; @ifdown
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported WOL paramter. qdev->wol = 0x%x.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set magic packet on %s.\n"

	.comm	_drv,4,2                        ; @drv
l_.str.2:                               ; @.str.2
	.asciz	"Enabled magic packet successfully on %s.\n"

	.comm	_MB_WOL_MAGIC_PKT,4,2           ; @MB_WOL_MAGIC_PKT
	.comm	_MB_WOL_MODE_ON,4,2             ; @MB_WOL_MODE_ON
l_.str.3:                               ; @.str.3
	.asciz	"WOL %s (wol code 0x%x) on %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Sucessfully set"

l_.str.5:                               ; @.str.5
	.asciz	"Failed"

.subsections_via_symbols
