	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_channel_utilization
_update_channel_utilization:            ## @update_channel_utilization
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_8
## %bb.2:
	movq	8(%rbx), %r14
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_hostapd_drv_get_survey
	testl	%eax, %eax
	je	LBB0_3
## %bb.9:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_ieee802_11_set_beacon
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_get_bss_load_update_timeout
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:
	movl	(%r14), %ecx
	addl	16(%r14), %ecx
	movl	%ecx, (%r14)
	movl	4(%rax), %esi
	movl	4(%r14), %eax
	addl	%esi, %eax
	movl	%eax, 4(%r14)
	cmpl	%edx, %eax
	jl	LBB0_7
## %bb.6:
	cltd
	idivl	%esi
	movl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
LBB0_7:
	movl	-24(%rbp), %edi
	movl	-20(%rbp), %esi
	leaq	_update_channel_utilization(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BSS Load: Failed to get survey data"

	.no_dead_strip	_update_channel_utilization
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_channel_utilization
_update_channel_utilization:            ; @update_channel_utilization
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x20, [x19, #8]
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_hostapd_drv_get_survey
	cbz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_wpa_printf
LBB0_4:
	mov	x0, x19
	bl	_ieee802_11_set_beacon
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	bl	_get_bss_load_update_timeout
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldr	x9, [x19]
	ldr	w8, [x9]
	cbz	w8, LBB0_8
; %bb.6:
	ldr	w10, [x20, #16]
	ldp	w11, w12, [x20]
	add	w10, w11, w10
	ldr	w9, [x9, #4]
	add	w11, w12, w9
	cmp	w11, w8
	stp	w10, w11, [x20]
	b.lt	LBB0_8
; %bb.7:
	sdiv	w8, w11, w9
	sdiv	w8, w10, w8
	str	w8, [x20, #8]
	str	xzr, [x20]
LBB0_8:
	ldp	w1, w0, [sp, #8]
Lloh5:
	adrp	x2, _update_channel_utilization@PAGE
Lloh6:
	add	x2, x2, _update_channel_utilization@PAGEOFF
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BSS Load: Failed to get survey data"

	.no_dead_strip	_update_channel_utilization
.subsections_via_symbols
