	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hci_uart_tty_ioctl
_hci_uart_tty_ioctl:                    ## @hci_uart_tty_ioctl
	.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
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	cmpl	$130, %ebx
	je	LBB0_12
## %bb.4:
	cmpl	$129, %ebx
	je	LBB0_10
## %bb.5:
	cmpl	$128, %ebx
	jne	LBB0_15
## %bb.6:
	movq	_HCI_UART_PROTO_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	8(%r15), %r12
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EBADF@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	_HCI_UART_PROTO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_10:
	movq	_HCI_UART_PROTO_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	16(%r15), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_15:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_n_tty_ioctl_helper             ## TAILCALL
LBB0_14:
	movq	_EUNATCH@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_hci_uart_set_proto
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:
	movl	%eax, %ebx
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	jmp	LBB0_17
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_HCI_UART_PROTO_SET,4,2         ## @HCI_UART_PROTO_SET
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EUNATCH,4,2                    ## @EUNATCH
	.no_dead_strip	_hci_uart_tty_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hci_uart_tty_ioctl
_hci_uart_tty_ioctl:                    ; @hci_uart_tty_ioctl
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	cbz	x19, LBB0_6
; %bb.1:
	cmp	w21, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w21, #128
	b.ne	LBB0_12
; %bb.4:
Lloh2:
	adrp	x22, _HCI_UART_PROTO_SET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HCI_UART_PROTO_SET@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #8
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	w0, LBB0_16
; %bb.5:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh6:
	adrp	x8, _EBADF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
Lloh8:
	adrp	x8, _HCI_UART_PROTO_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCI_UART_PROTO_SET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.8:
	ldr	x8, [x19]
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _HCI_UART_PROTO_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCI_UART_PROTO_SET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_13
; %bb.10:
	ldr	x8, [x19, #16]
LBB0_11:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_12:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	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
	b	_n_tty_ioctl_helper
LBB0_13:
Lloh14:
	adrp	x8, _EUNATCH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EUNATCH@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x19
	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
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_hci_uart_set_proto
	mov	x19, x0
	cbz	w0, LBB0_15
; %bb.17:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_clear_bit
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_HCI_UART_PROTO_SET,4,2         ; @HCI_UART_PROTO_SET
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EUNATCH,4,2                    ; @EUNATCH
	.no_dead_strip	_hci_uart_tty_ioctl
.subsections_via_symbols
