	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_read_clock_offset
_hci_read_clock_offset:                 ## @hci_read_clock_offset
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	movq	(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-564(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.2:
	movl	-564(%rbp), %edi
	testl	%edi, %edi
	js	LBB0_4
## %bb.3:
	cmpl	$3840, %edi                     ## imm = 0xF00
	jge	LBB0_4
## %bb.5:
	callq	_htole16
	movl	%eax, -568(%rbp)
	movl	$512, -564(%rbp)                ## imm = 0x200
	movq	_NG_HCI_OGF_LINK_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NG_HCI_OCF_READ_CLOCK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NG_HCI_OPCODE
	leaq	-568(%rbp), %rdx
	leaq	-560(%rbp), %r8
	leaq	-564(%rbp), %r9
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %ecx
	callq	_hci_request
	movq	_ERROR@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_18
## %bb.6:
	cmpb	$0, -560(%rbp)
	je	LBB0_7
## %bb.20:
	movq	_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_4:
	movq	_USAGE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.19:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-560(%rbp), %r14
	leaq	-564(%rbp), %r15
	movq	_NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$512, -564(%rbp)                ## imm = 0x200
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_hci_recv
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$7, -564(%rbp)
	jbe	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-560(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.12:
	movl	-552(%rbp), %ebx
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.13:
	movl	%ebx, %edi
	callq	_hci_status2str
	movl	-552(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movl	%ecx, %eax
	jmp	LBB0_18
LBB0_14:
	movl	-544(%rbp), %edi
	callq	_le16toh
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %r14d
	movl	-548(%rbp), %edi
	callq	_le16toh
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
                                        ## implicit-def: $eax
LBB0_15:
	testl	%ebx, %ebx
	jne	LBB0_18
## %bb.16:
	movq	_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_USAGE,4,2                      ## @USAGE
	.comm	_NG_HCI_OGF_LINK_CONTROL,4,2    ## @NG_HCI_OGF_LINK_CONTROL
	.comm	_NG_HCI_OCF_READ_CLOCK_OFFSET,4,2 ## @NG_HCI_OCF_READ_CLOCK_OFFSET
	.comm	_ERROR,8,3                      ## @ERROR
	.comm	_FAILED,4,2                     ## @FAILED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.comm	_NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL,8,3 ## @NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Status: %s [%#02x]\n"

L_.str.2:                               ## @.str.2
	.asciz	"Connection handle: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Clock offset: %#04x\n"

	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_hci_read_clock_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_read_clock_offset
_hci_read_clock_offset:                 ; @hci_read_clock_offset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #544
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cmp	w1, #1
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x0, [x2]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [sp, #20]
	tbnz	w0, #31, LBB0_7
; %bb.3:
	cmp	w0, #3840
	b.ge	LBB0_7
; %bb.4:
	bl	_htole16
	mov	w8, #512
	stp	w0, w8, [sp, #16]
Lloh5:
	adrp	x8, _NG_HCI_OGF_LINK_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NG_HCI_OGF_LINK_CONTROL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _NG_HCI_OCF_READ_CLOCK_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NG_HCI_OCF_READ_CLOCK_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_NG_HCI_OPCODE
	mov	x1, x0
	add	x2, sp, #16
	add	x4, sp, #24
	add	x5, sp, #20
	mov	x0, x19
	mov	w3, #4
	bl	_hci_request
Lloh11:
	adrp	x20, _ERROR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ERROR@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.5:
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_11
; %bb.6:
Lloh13:
	adrp	x8, _FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _USAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _USAGE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.10:
                                        ; kill: def $w0 killed $w0 killed $x0
	add	sp, sp, #544
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w21, #512
Lloh20:
	adrp	x22, _NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #20]
	add	x1, sp, #24
	add	x2, sp, #20
	mov	x0, x19
	bl	_hci_recv
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [sp, #20]
	cmp	w9, #7
	b.ls	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.15:
	ldr	w19, [sp, #32]
Lloh22:
	adrp	x21, _stdout@GOTPAGE
Lloh23:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	ldr	w20, [x21]
	cbz	w19, LBB0_19
; %bb.16:
	mov	x0, x19
	bl	_hci_status2str
	ldr	w8, [sp, #32]
	stp	x0, x8, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_fprintf
Lloh26:
	adrp	x8, _FAILED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FAILED@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	b	LBB0_20
LBB0_17:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_9
LBB0_18:
Lloh29:
	adrp	x9, _EIO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _errno@GOTPAGE
Lloh33:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh34:
	str	w9, [x10]
	mov	x0, x8
	b	LBB0_9
LBB0_19:
	ldr	w0, [sp, #40]
	bl	_le16toh
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	ldr	w20, [x21]
	ldr	w0, [sp, #36]
	bl	_le16toh
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_fprintf
                                        ; implicit-def: $w8
LBB0_20:
Lloh39:
	adrp	x9, _OK@GOTPAGE
Lloh40:
	ldr	x9, [x9, _OK@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w19, #0
	csel	w0, w9, w8, eq
	b	LBB0_9
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_USAGE,4,2                      ; @USAGE
	.comm	_NG_HCI_OGF_LINK_CONTROL,4,2    ; @NG_HCI_OGF_LINK_CONTROL
	.comm	_NG_HCI_OCF_READ_CLOCK_OFFSET,4,2 ; @NG_HCI_OCF_READ_CLOCK_OFFSET
	.comm	_ERROR,8,3                      ; @ERROR
	.comm	_FAILED,4,2                     ; @FAILED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.comm	_NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL,8,3 ; @NG_HCI_EVENT_READ_CLOCK_OFFSET_COMPL
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Status: %s [%#02x]\n"

l_.str.2:                               ; @.str.2
	.asciz	"Connection handle: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Clock offset: %#04x\n"

	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_hci_read_clock_offset
.subsections_via_symbols
