	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_cmdcfg_maskset
_bgmac_cmdcfg_maskset:                  ## @bgmac_cmdcfg_maskset
	.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
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_BGMAC_CMDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bgmac_read
	movl	%eax, %r12d
	andl	%eax, %r13d
	movq	_BGMAC_FEAT_CMDCFG_SR_REV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	jne	LBB0_1
## %bb.2:
	movq	_BGMAC_CMDCFG_SR_REV0@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BGMAC_CMDCFG_SR_REV4@GOTPCREL(%rip), %rax
LBB0_3:
	orl	%ebx, %r13d
	movl	(%rax), %ebx
	movq	_BGMAC_CMDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bgmac_set
	movl	$2, %edi
	callq	_udelay
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:
	cmpl	%r12d, %r13d
	je	LBB0_6
LBB0_5:
	movq	_BGMAC_CMDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_bgmac_write
LBB0_6:
	movq	_BGMAC_CMDCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bgmac_mask
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BGMAC_CMDCFG,4,2               ## @BGMAC_CMDCFG
	.comm	_BGMAC_FEAT_CMDCFG_SR_REV4,4,2  ## @BGMAC_FEAT_CMDCFG_SR_REV4
	.comm	_BGMAC_CMDCFG_SR_REV4,4,2       ## @BGMAC_CMDCFG_SR_REV4
	.comm	_BGMAC_CMDCFG_SR_REV0,4,2       ## @BGMAC_CMDCFG_SR_REV0
	.no_dead_strip	_bgmac_cmdcfg_maskset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_cmdcfg_maskset
_bgmac_cmdcfg_maskset:                  ; @bgmac_cmdcfg_maskset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _BGMAC_CMDCFG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BGMAC_CMDCFG@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_bgmac_read
	mov	x22, x0
	and	w8, w0, w21
	orr	w20, w8, w20
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _BGMAC_FEAT_CMDCFG_SR_REV4@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BGMAC_FEAT_CMDCFG_SR_REV4@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BGMAC_CMDCFG_SR_REV0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BGMAC_CMDCFG_SR_REV0@GOTPAGEOFF]
Lloh7:
	adrp	x11, _BGMAC_CMDCFG_SR_REV4@GOTPAGE
Lloh8:
	ldr	x11, [x11, _BGMAC_CMDCFG_SR_REV4@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x21
	bl	_bgmac_set
	mov	w0, #2
	bl	_udelay
	cbnz	w23, LBB0_2
; %bb.1:
	cmp	w20, w22
	b.eq	LBB0_3
LBB0_2:
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_bgmac_write
LBB0_3:
	ldr	w1, [x24]
	mvn	w2, w21
	mov	x0, x19
	bl	_bgmac_mask
	mov	w0, #2
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_udelay
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BGMAC_CMDCFG,4,2               ; @BGMAC_CMDCFG
	.comm	_BGMAC_FEAT_CMDCFG_SR_REV4,4,2  ; @BGMAC_FEAT_CMDCFG_SR_REV4
	.comm	_BGMAC_CMDCFG_SR_REV4,4,2       ; @BGMAC_CMDCFG_SR_REV4
	.comm	_BGMAC_CMDCFG_SR_REV0,4,2       ; @BGMAC_CMDCFG_SR_REV0
	.no_dead_strip	_bgmac_cmdcfg_maskset
.subsections_via_symbols
