	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_conn_request_evt
_hci_conn_request_evt:                  ## @hci_conn_request_evt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ERR_OK@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	movq	(%r14), %r15
	leaq	24(%r15), %rdx
	movl	36(%r15), %ecx
	movq	_hci_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%rbx, %r8
	callq	_HCI_EVENT_CONN_REQ
	cmpq	(%r12), %rbx
	jne	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_hci_get_link
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_hci_new
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_bd_addr_set
	movq	_hci_active_links@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_HCI_REG
LBB0_4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hci_accecpt_conn_request       ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERROR                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_OK,8,3                     ## @ERR_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci_conn_request_evt()\n"

	.comm	_hci_dev,4,2                    ## @hci_dev
L_.str.1:                               ## @.str.1
	.asciz	"hci_conn_request_evt: Could not allocate memory for link. Disconnect\n"

	.comm	_hci_active_links,4,2           ## @hci_active_links
	.no_dead_strip	_hci_conn_request_evt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_conn_request_evt
_hci_conn_request_evt:                  ; @hci_conn_request_evt
	.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
Lloh0:
	adrp	x21, _ERR_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ERR_OK@GOTPAGEOFF]
	ldr	x20, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
	ldr	x19, [x19]
	add	x2, x19, #24
	ldr	w3, [x19, #36]
Lloh4:
	adrp	x8, _hci_dev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hci_dev@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x4, x20
	bl	_HCI_EVENT_CONN_REQ
	ldr	x8, [x21]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_hci_get_link
	cbnz	x0, LBB0_4
; %bb.2:
	bl	_hci_new
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x1, x19
	bl	_bd_addr_set
Lloh7:
	adrp	x0, _hci_active_links@GOTPAGE
Lloh8:
	ldr	x0, [x0, _hci_active_links@GOTPAGEOFF]
	mov	x1, x20
	bl	_HCI_REG
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	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	_hci_accecpt_conn_request
LBB0_5:
	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_6:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_ERROR
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_OK,8,3                     ; @ERR_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci_conn_request_evt()\n"

	.comm	_hci_dev,4,2                    ; @hci_dev
l_.str.1:                               ; @.str.1
	.asciz	"hci_conn_request_evt: Could not allocate memory for link. Disconnect\n"

	.comm	_hci_active_links,4,2           ; @hci_active_links
	.no_dead_strip	_hci_conn_request_evt
.subsections_via_symbols
