	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_set_wol
_bcm_sysport_set_wol:                   ## @bcm_sysport_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, %r15
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r13
	movq	_WAKE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WAKE_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r13, %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	orl	%r14d, %ebx
	orl	%r12d, %ebx
	movl	(%r15), %eax
	notl	%ebx
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_5:
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movl	12(%rbx), %edi
	movl	4(%r15), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r15), %eax
LBB0_7:
	movq	%r13, %rdi
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	$1, %esi
	callq	_device_set_wakeup_enable
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	movl	8(%rbx), %edi
	callq	_enable_irq_wake
LBB0_10:
	movl	$0, (%rbx)
	jmp	LBB0_14
LBB0_11:
	xorl	%esi, %esi
	callq	_device_set_wakeup_enable
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.12:
	movl	8(%rbx), %edi
	callq	_disable_irq_wake
LBB0_13:
	movl	$1, (%rbx)
LBB0_14:
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGIC,4,2                 ## @WAKE_MAGIC
	.comm	_WAKE_MAGICSECURE,4,2           ## @WAKE_MAGICSECURE
	.comm	_WAKE_FILTER,4,2                ## @WAKE_FILTER
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm_sysport_set_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_set_wol
_bcm_sysport_set_wol:                   ; @bcm_sysport_set_wol
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #16]
Lloh0:
	adrp	x8, _WAKE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAKE_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x22, _WAKE_MAGICSECURE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WAKE_MAGICSECURE@GOTPAGEOFF]
	ldr	w24, [x22]
Lloh5:
	adrp	x8, _WAKE_FILTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WAKE_FILTER@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	mov	x0, x21
	bl	_device_can_wakeup
	cbz	w0, LBB0_3
; %bb.1:
	orr	w8, w24, w23
	orr	w9, w8, w25
	ldr	w8, [x19]
	bics	wzr, w8, w9
	b.eq	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_5:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
LBB0_7:
	mov	x0, x21
	cbz	w8, LBB0_11
; %bb.8:
	mov	w1, #1
	bl	_device_set_wakeup_enable
	ldr	w8, [x20]
	cbz	w8, LBB0_10
; %bb.9:
	ldr	w0, [x20, #8]
	bl	_enable_irq_wake
LBB0_10:
	str	wzr, [x20]
	b	LBB0_14
LBB0_11:
	mov	w1, #0
	bl	_device_set_wakeup_enable
	ldr	w8, [x20]
	cbnz	w8, LBB0_13
; %bb.12:
	ldr	w0, [x20, #8]
	bl	_disable_irq_wake
LBB0_13:
	mov	w8, #1
	str	w8, [x20]
LBB0_14:
	mov	w0, #0
	ldr	w8, [x19]
	str	w8, [x20, #4]
LBB0_15:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGIC,4,2                 ; @WAKE_MAGIC
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.comm	_WAKE_FILTER,4,2                ; @WAKE_FILTER
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm_sysport_set_wol
.subsections_via_symbols
