	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_sock_cmsg
_hci_sock_cmsg:                         ## @hci_sock_cmsg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	callq	_hci_pi
	movl	(%rax), %ebx
	movq	_HCI_CMSG_DIR@GOTPCREL(%rip), %r15
	testl	%ebx, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_bt_cb
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SOL_HCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_put_cmsg
LBB0_2:
	movq	_HCI_CMSG_TSTAMP@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_skb_get_timestamp
	movq	_SOL_HCI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$8, %ecx
	movq	%r15, %r8
	callq	_put_cmsg
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCI_CMSG_DIR,4,2               ## @HCI_CMSG_DIR
	.comm	_SOL_HCI,4,2                    ## @SOL_HCI
	.comm	_HCI_CMSG_TSTAMP,4,2            ## @HCI_CMSG_TSTAMP
	.comm	_MSG_CMSG_COMPAT,4,2            ## @MSG_CMSG_COMPAT
	.no_dead_strip	_hci_sock_cmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_sock_cmsg
_hci_sock_cmsg:                         ; @hci_sock_cmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	bl	_hci_pi
	ldr	w22, [x0]
Lloh0:
	adrp	x23, _HCI_CMSG_DIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HCI_CMSG_DIR@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x21, _SOL_HCI@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SOL_HCI@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bt_cb
	ldr	w8, [x0]
	str	w8, [sp, #12]
	ldr	w1, [x21]
	ldr	w2, [x23]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #4
	bl	_put_cmsg
LBB0_2:
Lloh4:
	adrp	x23, _HCI_CMSG_TSTAMP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HCI_CMSG_TSTAMP@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	x1, sp
	mov	x0, x20
	bl	_skb_get_timestamp
	ldr	w1, [x21]
	ldr	w2, [x23]
	mov	x4, sp
	mov	x0, x19
	mov	w3, #8
	bl	_put_cmsg
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HCI_CMSG_DIR,4,2               ; @HCI_CMSG_DIR
	.comm	_SOL_HCI,4,2                    ; @SOL_HCI
	.comm	_HCI_CMSG_TSTAMP,4,2            ; @HCI_CMSG_TSTAMP
	.comm	_MSG_CMSG_COMPAT,4,2            ; @MSG_CMSG_COMPAT
	.no_dead_strip	_hci_sock_cmsg
.subsections_via_symbols
