	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devname                     ## -- Begin function bt_devname
	.p2align	4, 0x90
_bt_devname:                            ## @bt_devname
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-48(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, -40(%rbp)
	movq	_bt_devaddr_match@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_bt_devenum
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_2
## %bb.3:
	movl	$1, %r15d
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	_HCI_DEVNAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_strlcpy
	jmp	LBB0_5
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bt_devaddr_match,4,2           ## @bt_devaddr_match
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_errno,4,2                      ## @errno
	.comm	_HCI_DEVNAME_SIZE,4,2           ## @HCI_DEVNAME_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bt_devname                     ; -- Begin function bt_devname
	.p2align	2
_bt_devname:                            ; @bt_devname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x20, [sp, #8]
Lloh0:
	adrp	x0, _bt_devaddr_match@GOTPAGE
Lloh1:
	ldr	x0, [x0, _bt_devaddr_match@GOTPAGEOFF]
	mov	x1, sp
	bl	_bt_devenum
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x1, [sp]
	ldrb	w8, [x1]
	cbz	w8, LBB0_6
; %bb.2:
	cbz	x19, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _HCI_DEVNAME_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCI_DEVNAME_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_strlcpy
LBB0_4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #0
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_bt_devaddr_match,4,2           ; @bt_devaddr_match
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_errno,4,2                      ; @errno
	.comm	_HCI_DEVNAME_SIZE,4,2           ; @HCI_DEVNAME_SIZE
.subsections_via_symbols
