	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_ubus_init
_hostapd_ubus_init:                     ## @hostapd_ubus_init
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ctx@GOTPCREL(%rip), %r14
	movl	$1, %ebx
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_ubus_connect
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_hostapd_ubus_connection_lost@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rax), %edi
	movq	_ubus_receive@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_eloop_register_read_sock
	movl	$1, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctx,8,3                        ## @ctx
	.comm	_hostapd_ubus_connection_lost,4,2 ## @hostapd_ubus_connection_lost
	.comm	_ubus_receive,4,2               ## @ubus_receive
	.no_dead_strip	_hostapd_ubus_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_ubus_init
_hostapd_ubus_init:                     ; @hostapd_ubus_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ctx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ctx@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x0, #0
	bl	_ubus_connect
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x2, x0
Lloh2:
	adrp	x8, _hostapd_ubus_connection_lost@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hostapd_ubus_connection_lost@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w0, [x0]
Lloh5:
	adrp	x8, _ubus_receive@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ubus_receive@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x3, #0
	bl	_eloop_register_read_sock
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ctx,8,3                        ; @ctx
	.comm	_hostapd_ubus_connection_lost,4,2 ; @hostapd_ubus_connection_lost
	.comm	_ubus_receive,4,2               ; @ubus_receive
	.no_dead_strip	_hostapd_ubus_init
.subsections_via_symbols
