	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ubus_add_bss           ## -- Begin function hostapd_ubus_add_bss
	.p2align	4, 0x90
_hostapd_ubus_add_bss:                  ## @hostapd_ubus_add_bss
	.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
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_hostapd_ubus_init
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	32(%rbx), %rax
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rdi
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	leaq	8(%rbx), %r14
	movq	_avl_compare_macaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_avl_init
	movq	-24(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	_bss_object_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_ubus_add_object
	xorl	%eax, %eax
	callq	_hostapd_ubus_ref_inc
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hostapd.%s"

	.comm	_avl_compare_macaddr,4,2        ## @avl_compare_macaddr
	.comm	_bss_object_type,8,2            ## @bss_object_type
	.comm	_ctx,4,2                        ## @ctx
	.comm	_MESH_ENABLED,4,2               ## @MESH_ENABLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ubus_add_bss           ; -- Begin function hostapd_ubus_add_bss
	.p2align	2
_hostapd_ubus_add_bss:                  ; @hostapd_ubus_add_bss
	.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
	mov	x19, x0
	bl	_hostapd_ubus_init
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w2, [x8, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	tbnz	x0, #63, LBB0_3
; %bb.2:
	add	x20, x19, #8
Lloh2:
	adrp	x8, _avl_compare_macaddr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _avl_compare_macaddr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, #0
	bl	_avl_init
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
Lloh5:
	adrp	x8, _bss_object_type@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bss_object_type@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldr	d0, [x8]
	str	d0, [x19, #16]
Lloh7:
	adrp	x8, _ctx@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ubus_add_object
	bl	_hostapd_ubus_ref_inc
LBB0_3:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hostapd.%s"

	.comm	_avl_compare_macaddr,4,2        ; @avl_compare_macaddr
	.comm	_bss_object_type,8,2            ; @bss_object_type
	.comm	_ctx,4,2                        ; @ctx
	.comm	_MESH_ENABLED,4,2               ; @MESH_ENABLED
.subsections_via_symbols
