	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_ethtool_set_wol
_lbs_ethtool_set_wol:                   ## @lbs_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
	movl	(%rsi), %ecx
	movq	_WAKE_UCAST@GOTPCREL(%rip), %rsi
	movq	_WAKE_MCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rsi), %edx
	movq	_WAKE_BCAST@GOTPCREL(%rip), %r9
	orl	(%r9), %edx
	movq	_WAKE_PHY@GOTPCREL(%rip), %r8
	orl	(%r8), %edx
	notl	%edx
	testl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rdx
	movl	$0, (%rdx)
	testl	%ecx, (%rsi)
	je	LBB0_3
## %bb.4:
	movq	_EHS_WAKE_ON_UNICAST_DATA@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%rdx)
	testl	%ecx, (%rax)
	je	LBB0_7
LBB0_6:
	movq	_EHS_WAKE_ON_MULTICAST_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rdx)
LBB0_7:
	testl	%ecx, (%r9)
	je	LBB0_9
## %bb.8:
	movq	_EHS_WAKE_ON_BROADCAST_DATA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rdx)
LBB0_9:
	testl	%ecx, (%r8)
	je	LBB0_11
## %bb.10:
	movq	_EHS_WAKE_ON_MAC_EVENT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%esi, (%rdx)
LBB0_11:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.13:
	popq	%rbp
	retq
LBB0_3:
	xorl	%esi, %esi
	testl	%ecx, (%rax)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_12:
	movq	_EHS_REMOVE_WAKEUP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%esi, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_UCAST,4,2                 ## @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ## @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ## @WAKE_BCAST
	.comm	_WAKE_PHY,4,2                   ## @WAKE_PHY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EHS_WAKE_ON_UNICAST_DATA,4,2   ## @EHS_WAKE_ON_UNICAST_DATA
	.comm	_EHS_WAKE_ON_MULTICAST_DATA,4,2 ## @EHS_WAKE_ON_MULTICAST_DATA
	.comm	_EHS_WAKE_ON_BROADCAST_DATA,4,2 ## @EHS_WAKE_ON_BROADCAST_DATA
	.comm	_EHS_WAKE_ON_MAC_EVENT,4,2      ## @EHS_WAKE_ON_MAC_EVENT
	.comm	_EHS_REMOVE_WAKEUP,4,2          ## @EHS_REMOVE_WAKEUP
	.no_dead_strip	_lbs_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 lbs_ethtool_set_wol
_lbs_ethtool_set_wol:                   ; @lbs_ethtool_set_wol
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x10, _WAKE_UCAST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _WAKE_UCAST@GOTPAGEOFF]
Lloh2:
	adrp	x13, _WAKE_MCAST@GOTPAGE
Lloh3:
	ldr	x13, [x13, _WAKE_MCAST@GOTPAGEOFF]
	ldr	w9, [x10]
	ldr	w11, [x13]
	orr	w9, w11, w9
Lloh4:
	adrp	x12, _WAKE_BCAST@GOTPAGE
Lloh5:
	ldr	x12, [x12, _WAKE_BCAST@GOTPAGEOFF]
	ldr	w11, [x12]
	orr	w9, w9, w11
Lloh6:
	adrp	x11, _WAKE_PHY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _WAKE_PHY@GOTPAGEOFF]
	ldr	w14, [x11]
	orr	w9, w9, w14
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	ldr	x9, [x0]
	str	wzr, [x9]
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x10, _EHS_WAKE_ON_UNICAST_DATA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EHS_WAKE_ON_UNICAST_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	str	w10, [x9]
	b	LBB0_5
LBB0_4:
	mov	w10, #0
LBB0_5:
	ldr	w13, [x13]
	tst	w13, w8
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x13, _EHS_WAKE_ON_MULTICAST_DATA@GOTPAGE
Lloh15:
	ldr	x13, [x13, _EHS_WAKE_ON_MULTICAST_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w13, [x13]
	orr	w10, w10, w13
	str	w10, [x9]
LBB0_7:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_9
; %bb.8:
Lloh17:
	adrp	x12, _EHS_WAKE_ON_BROADCAST_DATA@GOTPAGE
Lloh18:
	ldr	x12, [x12, _EHS_WAKE_ON_BROADCAST_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x12]
	orr	w10, w10, w12
	str	w10, [x9]
LBB0_9:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_11
; %bb.10:
Lloh20:
	adrp	x11, _EHS_WAKE_ON_MAC_EVENT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _EHS_WAKE_ON_MAC_EVENT@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x9]
LBB0_11:
	mov	w0, #0
	cbz	w8, LBB0_13
; %bb.12:
	ret
LBB0_13:
Lloh23:
	adrp	x8, _EHS_REMOVE_WAKEUP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EHS_REMOVE_WAKEUP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w8, w10, w8
	str	w8, [x9]
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_UCAST,4,2                 ; @WAKE_UCAST
	.comm	_WAKE_MCAST,4,2                 ; @WAKE_MCAST
	.comm	_WAKE_BCAST,4,2                 ; @WAKE_BCAST
	.comm	_WAKE_PHY,4,2                   ; @WAKE_PHY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EHS_WAKE_ON_UNICAST_DATA,4,2   ; @EHS_WAKE_ON_UNICAST_DATA
	.comm	_EHS_WAKE_ON_MULTICAST_DATA,4,2 ; @EHS_WAKE_ON_MULTICAST_DATA
	.comm	_EHS_WAKE_ON_BROADCAST_DATA,4,2 ; @EHS_WAKE_ON_BROADCAST_DATA
	.comm	_EHS_WAKE_ON_MAC_EVENT,4,2      ; @EHS_WAKE_ON_MAC_EVENT
	.comm	_EHS_REMOVE_WAKEUP,4,2          ; @EHS_REMOVE_WAKEUP
	.no_dead_strip	_lbs_ethtool_set_wol
.subsections_via_symbols
