	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ubus_add               ## -- Begin function hostapd_ubus_add
	.p2align	4, 0x90
_hostapd_ubus_add:                      ## @hostapd_ubus_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_hostapd_ubus_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r15d
	addl	$2, %r15d
	jmp	LBB0_4
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	incl	%r15d
LBB0_4:
	leaq	8(%rbx), %r14
	movl	%r15d, %edi
	callq	_malloc
	movl	%eax, 24(%rbx)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_strcpy
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
	movl	24(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_strcat
LBB0_6:
	movq	_daemon_object_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_ubus_add_object
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hostapd_ubus_ref_inc           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hostapd"

L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_daemon_object_type,8,2         ## @daemon_object_type
	.comm	_ctx,4,2                        ## @ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_ubus_add               ; -- Begin function hostapd_ubus_add
	.p2align	2
_hostapd_ubus_add:                      ; @hostapd_ubus_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_hostapd_ubus_init
	cbz	w0, LBB0_3
; %bb.1:
	add	x20, x19, #8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	mov	x21, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_strlen
	add	w8, w21, w0
	add	w0, w8, #2
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	w0, w21, #1
LBB0_5:
	bl	_malloc
	str	w0, [x19, #24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x19, #24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
	ldr	w0, [x19, #24]
	ldr	x1, [x19]
	bl	_strcat
LBB0_7:
Lloh6:
	adrp	x8, _daemon_object_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _daemon_object_type@GOTPAGEOFF]
	str	x8, [x19, #16]
	ldr	d0, [x8]
	str	d0, [x19, #8]
Lloh8:
	adrp	x8, _ctx@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ubus_add_object
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hostapd_ubus_ref_inc
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hostapd"

l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_daemon_object_type,8,2         ; @daemon_object_type
	.comm	_ctx,4,2                        ; @ctx
.subsections_via_symbols
