	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnep_sock_create
_bnep_sock_create:                      ## @bnep_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	(%rbx), %rax
	movq	_SOCK_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_PF_BLUETOOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bnep_proto@GOTPCREL(%rip), %rcx
	movq	%r15, %rdi
	callq	_sk_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sock_init_data
	movq	_bnep_sock_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sock_reset_flag
	movl	%r14d, (%r15)
	movq	_BT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ESOCKTNOSUPPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sock %p"

	.comm	_SOCK_RAW,8,3                   ## @SOCK_RAW
	.comm	_ESOCKTNOSUPPORT,4,2            ## @ESOCKTNOSUPPORT
	.comm	_PF_BLUETOOTH,4,2               ## @PF_BLUETOOTH
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_bnep_proto,4,2                 ## @bnep_proto
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bnep_sock_ops,4,2              ## @bnep_sock_ops
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ## @BT_OPEN
	.no_dead_strip	_bnep_sock_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnep_sock_create
_bnep_sock_create:                      ; @bnep_sock_create
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _SOCK_RAW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_RAW@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _PF_BLUETOOTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PF_BLUETOOTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, _bnep_proto@GOTPAGE
Lloh12:
	ldr	x3, [x3, _bnep_proto@GOTPAGEOFF]
	mov	x0, x21
	bl	_sk_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_sock_init_data
Lloh13:
	adrp	x8, _bnep_sock_ops@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bnep_sock_ops@GOTPAGEOFF]
Lloh15:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh17:
	ldr	w8, [x9]
	str	w8, [x20, #8]
Lloh18:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sock_reset_flag
	mov	w0, #0
	str	w19, [x21]
Lloh21:
	adrp	x8, _BT_OPEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT_OPEN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	b	LBB0_6
LBB0_3:
Lloh24:
	adrp	x8, _ESOCKTNOSUPPORT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ESOCKTNOSUPPORT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sock %p"

	.comm	_SOCK_RAW,8,3                   ; @SOCK_RAW
	.comm	_ESOCKTNOSUPPORT,4,2            ; @ESOCKTNOSUPPORT
	.comm	_PF_BLUETOOTH,4,2               ; @PF_BLUETOOTH
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_bnep_proto,4,2                 ; @bnep_proto
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bnep_sock_ops,4,2              ; @bnep_sock_ops
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.comm	_BT_OPEN,4,2                    ; @BT_OPEN
	.no_dead_strip	_bnep_sock_create
.subsections_via_symbols
