	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btstack_try_load
_btstack_try_load:                      ## @btstack_try_load
	.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	_btstack_tested@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_btstack_loaded@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movl	$1, (%rax)
	movq	_btstack_loaded@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_btstack_get_handle
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_RUN_LOOP_POSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_run_loop_init_ptr
	movq	_btpad_packet_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_bt_register_packet_handler_ptr
	movl	$1, (%r14)
	movl	$1, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_btstack_tested,4,2             ## @btstack_tested
	.comm	_btstack_loaded,4,2             ## @btstack_loaded
	.comm	_RUN_LOOP_POSIX,4,2             ## @RUN_LOOP_POSIX
	.comm	_btpad_packet_handler,4,2       ## @btpad_packet_handler
	.comm	_RUN_LOOP_COCOA,4,2             ## @RUN_LOOP_COCOA
	.comm	_grabbers,8,3                   ## @grabbers
	.no_dead_strip	_btstack_try_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btstack_try_load
_btstack_try_load:                      ; @btstack_try_load
	.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	x8, _btstack_tested@GOTPAGE
Lloh1:
	ldr	x8, [x8, _btstack_tested@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _btstack_loaded@GOTPAGE
Lloh3:
	ldr	x8, [x8, _btstack_loaded@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_5
LBB0_2:
	mov	w19, #1
	str	w19, [x8]
Lloh5:
	adrp	x20, _btstack_loaded@GOTPAGE
Lloh6:
	ldr	x20, [x20, _btstack_loaded@GOTPAGEOFF]
	str	wzr, [x20]
	bl	_btstack_get_handle
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _RUN_LOOP_POSIX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RUN_LOOP_POSIX@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_run_loop_init_ptr
Lloh10:
	adrp	x8, _btpad_packet_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _btpad_packet_handler@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_bt_register_packet_handler_ptr
	str	w19, [x20]
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	x0, x19
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_btstack_tested,4,2             ; @btstack_tested
	.comm	_btstack_loaded,4,2             ; @btstack_loaded
	.comm	_RUN_LOOP_POSIX,4,2             ; @RUN_LOOP_POSIX
	.comm	_btpad_packet_handler,4,2       ; @btpad_packet_handler
	.comm	_RUN_LOOP_COCOA,4,2             ; @RUN_LOOP_COCOA
	.comm	_grabbers,8,3                   ; @grabbers
	.no_dead_strip	_btstack_try_load
.subsections_via_symbols
