	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_reg_dev_info               ## -- Begin function hci_reg_dev_info
	.p2align	4, 0x90
_hci_reg_dev_info:                      ## @hci_reg_dev_info
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hci_dev@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	_hci_inq_results@GOTPCREL(%rip), %rdi
	callq	_btmemb_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$36, %rdi
	movq	%r14, %rsi
	callq	_bd_addr_set
	movl	32(%rbx), %edi
	movq	%r13, %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	%r12, 24(%rbx)
	movq	%r15, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	_hci_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_HCI_REG
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ERR_VAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hci_dev,8,3                    ## @hci_dev
	.comm	_ERR_VAL,4,2                    ## @ERR_VAL
	.comm	_hci_inq_results,4,2            ## @hci_inq_results
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hci_reg_dev_info               ; -- Begin function hci_reg_dev_info
	.p2align	2
_hci_reg_dev_info:                      ; @hci_reg_dev_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x25, _hci_dev@GOTPAGE
Lloh1:
	ldr	x25, [x25, _hci_dev@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
Lloh2:
	adrp	x0, _hci_inq_results@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hci_inq_results@GOTPAGEOFF]
	bl	_btmemb_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	add	x0, x0, #36
	mov	x1, x24
	bl	_bd_addr_set
	ldr	w0, [x22, #32]
	mov	x1, x23
	mov	w2, #3
	bl	_memcpy
	stp	x20, x21, [x22, #16]
	str	w19, [x22, #8]
	str	xzr, [x22]
	ldr	x0, [x25]
	mov	x1, x22
	bl	_HCI_REG
Lloh4:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ERR_VAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_VAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hci_dev,8,3                    ; @hci_dev
	.comm	_ERR_VAL,4,2                    ; @ERR_VAL
	.comm	_hci_inq_results,4,2            ; @hci_inq_results
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
.subsections_via_symbols
