	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_sw_get_wol
_bcm_sf2_sw_get_wol:                    ## @bcm_sf2_sw_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	callq	_bcm_sf2_to_priv
	movq	%rax, %r15
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*%rcx
	movl	-48(%rbp), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, 8(%r12)
	leaq	4(%r12), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_WAKE_MAGICSECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_5
## %bb.4:
	movl	-52(%rbp), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_5:
	movl	(%r15), %eax
	btl	%r14d, %eax
	jae	LBB0_7
## %bb.6:
	movl	-56(%rbp), %r13d
LBB0_7:
	movl	%r13d, (%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAKE_MAGICSECURE,4,2           ## @WAKE_MAGICSECURE
	.no_dead_strip	_bcm_sf2_sw_get_wol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_sw_get_wol
_bcm_sf2_sw_get_wol:                    ; @bcm_sf2_sw_get_wol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	ldr	x8, [x0]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	x22, [x8]
	bl	_bcm_sf2_to_priv
	mov	x21, x0
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x22
	blr	x8
	ldr	w8, [sp, #8]
LBB0_2:
	str	w8, [x19, #8]
	add	x22, x19, #4
	mov	x0, x22
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [sp]
Lloh0:
	adrp	x9, _WAKE_MAGICSECURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WAKE_MAGICSECURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [sp, #4]
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
LBB0_4:
	ldr	w8, [x21]
	ldr	w9, [sp]
	lsr	w8, w8, w20
	sbfx	w8, w8, #0, #1
	and	w8, w8, w9
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WAKE_MAGICSECURE,4,2           ; @WAKE_MAGICSECURE
	.no_dead_strip	_bcm_sf2_sw_get_wol
.subsections_via_symbols
