	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_aw_pt_bi
_set_aw_pt_bi:                          ## @set_aw_pt_bi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	(%rsi), %eax
	movl	4(%rsi), %edx
	movzwl	%ax, %edi
	cmpl	$6, %edi
	movl	$5, %ecx
	cmovael	%edi, %ecx
	cmpl	$4, %edx
	jl	LBB0_2
## %bb.1:
	cmpl	%ecx, %edx
	jl	LBB0_3
LBB0_2:
	leal	-1(%rcx), %edx
	movl	%edx, 4(%rsi)
LBB0_3:
	movl	8(%rsi), %edi
	cmpl	%edx, %edi
	jl	LBB0_5
## %bb.4:
	leal	-1(%rdx), %edi
	movl	%edi, 8(%rsi)
LBB0_5:
	movq	_CR_ATIM_WND_PERIOD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -44(%rbp)
	movl	%edi, -48(%rbp)
	movq	_CR_PRE_TBTT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -36(%rbp)
	movl	%edx, -40(%rbp)
	movq	_CR_BCN_INTERVAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -28(%rbp)
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	orl	%eax, %ecx
	movl	%ecx, -32(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_zd_iowrite32a_locked
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_ATIM_WND_PERIOD,4,2         ## @CR_ATIM_WND_PERIOD
	.comm	_CR_PRE_TBTT,4,2                ## @CR_PRE_TBTT
	.comm	_CR_BCN_INTERVAL,4,2            ## @CR_BCN_INTERVAL
	.no_dead_strip	_set_aw_pt_bi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_aw_pt_bi
_set_aw_pt_bi:                          ; @set_aw_pt_bi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldp	w8, w10, [x1]
	and	w9, w8, #0xffff
	mov	w11, #5
	cmp	w9, #5
	csel	w9, w9, w11, hi
	cmp	w10, #4
	ccmp	w10, w9, #0, ge
	b.lt	LBB0_2
; %bb.1:
	sub	w10, w9, #1
	str	w10, [x1, #4]
LBB0_2:
	ldr	w11, [x1, #8]
	cmp	w11, w10
	b.lt	LBB0_4
; %bb.3:
	sub	w11, w10, #1
	str	w11, [x1, #8]
LBB0_4:
Lloh3:
	adrp	x12, _CR_ATIM_WND_PERIOD@GOTPAGE
Lloh4:
	ldr	x12, [x12, _CR_ATIM_WND_PERIOD@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	stp	w11, w12, [sp]
Lloh6:
	adrp	x11, _CR_PRE_TBTT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CR_PRE_TBTT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
Lloh9:
	adrp	x12, _CR_BCN_INTERVAL@GOTPAGE
Lloh10:
	ldr	x12, [x12, _CR_BCN_INTERVAL@GOTPAGEOFF]
	stp	w10, w11, [sp, #8]
Lloh11:
	ldr	w10, [x12]
	and	w8, w8, #0xffff0000
	orr	w8, w9, w8
	stp	w8, w10, [sp, #16]
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_zd_iowrite32a_locked
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_ATIM_WND_PERIOD,4,2         ; @CR_ATIM_WND_PERIOD
	.comm	_CR_PRE_TBTT,4,2                ; @CR_PRE_TBTT
	.comm	_CR_BCN_INTERVAL,4,2            ; @CR_BCN_INTERVAL
	.no_dead_strip	_set_aw_pt_bi
.subsections_via_symbols
