	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_beacon_interval
_set_beacon_interval:                   ## @set_beacon_interval
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_mutex_is_locked
	movl	%eax, %edi
	callq	_ZD_ASSERT
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	cmpl	$130, %r12d
	je	LBB0_5
## %bb.3:
	cmpl	$129, %r12d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r12d
	jne	LBB0_8
LBB0_5:
	movq	_BCN_MODE_IBSS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_BCN_MODE_AP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	shll	$16, %ebx
	orl	%r15d, %ebx
	orl	%eax, %ebx
	movq	_CR_BCN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_zd_iowrite32_locked
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_aw_pt_bi
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_set_aw_pt_bi
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCN_MODE_IBSS,4,2              ## @BCN_MODE_IBSS
	.comm	_BCN_MODE_AP,4,2                ## @BCN_MODE_AP
	.comm	_CR_BCN_INTERVAL,4,2            ## @CR_BCN_INTERVAL
	.no_dead_strip	_set_beacon_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_beacon_interval
_set_beacon_interval:                   ; @set_beacon_interval
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_is_locked
	bl	_ZD_ASSERT
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.1:
	cmp	w22, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w22, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w22, #128
	b.ne	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _BCN_MODE_IBSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCN_MODE_IBSS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	w8, #0
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _BCN_MODE_AP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCN_MODE_AP@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	orr	w9, w20, w21, lsl #16
	orr	w1, w9, w8
Lloh4:
	adrp	x8, _CR_BCN_INTERVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CR_BCN_INTERVAL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_zd_iowrite32_locked
	cbnz	w0, LBB0_12
; %bb.10:
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_aw_pt_bi
	cbnz	w0, LBB0_12
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_set_aw_pt_bi
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BCN_MODE_IBSS,4,2              ; @BCN_MODE_IBSS
	.comm	_BCN_MODE_AP,4,2                ; @BCN_MODE_AP
	.comm	_CR_BCN_INTERVAL,4,2            ; @CR_BCN_INTERVAL
	.no_dead_strip	_set_beacon_interval
.subsections_via_symbols
