	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_freq               ## -- Begin function hostapd_set_freq
	.p2align	4, 0x90
_hostapd_set_freq:                      ## @hostapd_set_freq
	.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
	movq	%rdi, %r13
	movl	48(%rbp), %r12d
	movl	40(%rbp), %r15d
	movl	32(%rbp), %r14d
	movl	24(%rbp), %r11d
	movl	16(%rbp), %r10d
	movq	16(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	8(%rdi), %eax
	movq	_IEEE80211_MODE_AP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	shlq	$2, %rbx
	addq	(%rdi), %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_3:
	subq	$8, %rsp
	leaq	-48(%rbp), %rdi
	pushq	%rbx
	pushq	%rax
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_hostapd_set_freq_params
	addq	$64, %rsp
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_7
## %bb.4:
	movq	8(%r13), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.5:
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	callq	*%rcx
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MODE_AP,8,3          ## @IEEE80211_MODE_AP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_freq               ; -- Begin function hostapd_set_freq
	.p2align	2
_hostapd_set_freq:                      ; @hostapd_set_freq
	.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
	ldp	w9, w8, [x29, #20]
	ldr	w10, [x29, #16]
	ldr	x11, [x0, #16]
	ldr	x12, [x11]
	cbz	x12, LBB0_2
; %bb.1:
	ldr	w11, [x12, #8]
	ldr	x12, [x12]
Lloh0:
	adrp	x13, _IEEE80211_MODE_AP@GOTPAGE
Lloh1:
	ldr	x13, [x13, _IEEE80211_MODE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	add	x12, x12, x13, lsl #2
	b	LBB0_3
LBB0_2:
	mov	w11, #0
LBB0_3:
	str	x12, [sp, #16]
	add	x0, sp, #24
	stp	w8, w11, [sp, #8]
	stp	w10, w9, [sp]
	bl	_hostapd_set_freq_params
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	add	x1, sp, #24
	blr	x8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MODE_AP,8,3          ; @IEEE80211_MODE_AP
.subsections_via_symbols
