	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writeConfigRid
_writeConfigRid:                        ## @writeConfigRid
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_FLAG_COMMIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_FLAG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_checkThrottle
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_MODE_CFG_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MODE_STA_IBSS@GOTPCREL(%rip), %rcx
	movq	_FLAG_ADHOC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rsi
	callq	_set_bit
	jmp	LBB0_5
LBB0_1:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_5:
	movq	_RID_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %ecx
	movl	%r14d, %r8d
	callq	_PC4500_writerid
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_COMMIT,4,2                ## @FLAG_COMMIT
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FLAG_RESET,4,2                 ## @FLAG_RESET
	.comm	_MODE_CFG_MASK,4,2              ## @MODE_CFG_MASK
	.comm	_MODE_STA_IBSS,4,2              ## @MODE_STA_IBSS
	.comm	_FLAG_ADHOC,4,2                 ## @FLAG_ADHOC
	.comm	_RID_CONFIG,4,2                 ## @RID_CONFIG
	.no_dead_strip	_writeConfigRid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writeConfigRid
_writeConfigRid:                        ; @writeConfigRid
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _FLAG_COMMIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FLAG_COMMIT@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_clear_bit
Lloh2:
	adrp	x8, _FLAG_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FLAG_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x20
	bl	_checkThrottle
	ldr	w8, [x20, #4]
	str	w8, [sp, #8]
Lloh5:
	adrp	x9, _MODE_CFG_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MODE_CFG_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MODE_STA_IBSS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MODE_STA_IBSS@GOTPAGEOFF]
	and	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
Lloh11:
	adrp	x10, _FLAG_ADHOC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FLAG_ADHOC@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x10]
	mov	x1, x20
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	bl	_set_bit
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	bl	_clear_bit
LBB0_5:
Lloh17:
	adrp	x8, _RID_CONFIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RID_CONFIG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	mov	x4, x19
	bl	_PC4500_writerid
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_COMMIT,4,2                ; @FLAG_COMMIT
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FLAG_RESET,4,2                 ; @FLAG_RESET
	.comm	_MODE_CFG_MASK,4,2              ; @MODE_CFG_MASK
	.comm	_MODE_STA_IBSS,4,2              ; @MODE_STA_IBSS
	.comm	_FLAG_ADHOC,4,2                 ; @FLAG_ADHOC
	.comm	_RID_CONFIG,4,2                 ; @RID_CONFIG
	.no_dead_strip	_writeConfigRid
.subsections_via_symbols
