	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt_sock_create
_bt_sock_create:                        ## @bt_sock_create
	.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
	cmpq	_init_net@GOTPCREL(%rip), %rdi
	je	LBB0_3
## %bb.1:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %r12d
	testl	%edx, %edx
	js	LBB0_5
## %bb.4:
	movq	_BT_MAX_PROTO@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_5
## %bb.6:
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	_bt_proto@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %r13d
	cmpq	$0, (%rax,%r13,8)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_request_module
LBB0_8:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_bt_proto_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movq	_bt_proto@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	8(%rax), %edi
	callq	_try_module_get
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_bt_proto@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	_init_net@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	*(%rax)
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bt_sock_reclassify_lock
	movq	_bt_proto@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	8(%rax), %edi
	callq	_module_put
LBB0_11:
	movq	_bt_proto_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_BT_MAX_PROTO,4,2               ## @BT_MAX_PROTO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bt_proto,8,3                   ## @bt_proto
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bt-proto-%d"

	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_bt_proto_lock,4,2              ## @bt_proto_lock
	.no_dead_strip	_bt_sock_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt_sock_create
_bt_sock_create:                        ; @bt_sock_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _init_net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_net@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x2
	tbnz	w2, #31, LBB0_10
; %bb.3:
Lloh4:
	adrp	x8, _BT_MAX_PROTO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BT_MAX_PROTO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_10
; %bb.4:
	mov	x21, x3
	mov	x20, x1
Lloh7:
	adrp	x23, _bt_proto@GOTPAGE
Lloh8:
	ldr	x23, [x23, _bt_proto@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	w24, w19
	ldr	x8, [x8, w19, uxtw #3]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_request_module
LBB0_6:
Lloh11:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
Lloh14:
	adrp	x0, _bt_proto_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _bt_proto_lock@GOTPAGEOFF]
	bl	_read_lock
	ldr	x8, [x23]
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w0, [x8, #8]
	bl	_try_module_get
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x23]
	lsl	x24, x24, #3
	ldr	x8, [x8, x24]
	ldr	x8, [x8]
Lloh16:
	adrp	x0, _init_net@GOTPAGE
Lloh17:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	blr	x8
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bt_sock_reclassify_lock
	ldr	x8, [x23]
	ldr	x8, [x8, x24]
	ldr	w0, [x8, #8]
	bl	_module_put
LBB0_9:
Lloh18:
	adrp	x0, _bt_proto_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _bt_proto_lock@GOTPAGEOFF]
	bl	_read_unlock
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_BT_MAX_PROTO,4,2               ; @BT_MAX_PROTO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bt_proto,8,3                   ; @bt_proto
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bt-proto-%d"

	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_bt_proto_lock,4,2              ; @bt_proto_lock
	.no_dead_strip	_bt_sock_create
.subsections_via_symbols
