	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_hc_baseband_params     ## -- Begin function process_hc_baseband_params
	.p2align	4, 0x90
_process_hc_baseband_params:            ## @process_hc_baseband_params
	.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	%rcx, %r14
	movq	%rdx, %r15
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$52, %esi
	ja	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
	cmpq	$22, %rsi
	je	LBB0_2
LBB0_9:
	movq	%r15, %rdi
	callq	_NG_FREE_M
	movq	%r14, %rdi
	callq	_NG_FREE_M
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_9
LBB0_2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	callq	_NG_HCI_BUFF_ACL_TOTAL
	movl	4(%rbx), %edi
	callq	_NG_HCI_BUFF_ACL_FREE
	movl	4(%rbx), %edi
	callq	_NG_HCI_BUFF_SCO_TOTAL
	movl	4(%rbx), %edi
	callq	_NG_HCI_BUFF_SCO_FREE
	movq	_NG_HCI_UNIT_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$22, %esi
	callq	_ng_hci_lp_discon_ind
	movq	%r13, %rdi
	callq	_ng_hci_free_con
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_LIST_EMPTY
	testl	%eax, %eax
	jne	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_LIST_FIRST
	movq	%rax, %r13
	movq	_NG_HCI_CON_TIMEOUT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_ng_hci_con_untimeout
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_HCI_CON_TIMEOUT_PENDING,4,2 ## @NG_HCI_CON_TIMEOUT_PENDING
	.comm	_NG_HCI_UNIT_INITED,4,2         ## @NG_HCI_UNIT_INITED
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_hc_baseband_params     ; -- Begin function process_hc_baseband_params
	.p2align	2
_process_hc_baseband_params:            ; @process_hc_baseband_params
	.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	x19, x3
	mov	x20, x2
	sub	w8, w1, #128
	cmp	w8, #52
	b.hi	LBB0_4
; %bb.1:
	cmp	x8, #22
	b.eq	LBB0_5
; %bb.2:
	mov	w22, #0
LBB0_3:
	mov	x0, x20
	bl	_NG_FREE_M
	mov	x0, x19
	bl	_NG_FREE_M
	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
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	b	LBB0_3
LBB0_5:
	mov	x21, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_LIST_EMPTY
	cbz	w0, LBB0_7
LBB0_6:
	ldr	w0, [x21, #4]
	bl	_NG_HCI_BUFF_ACL_TOTAL
	ldr	w0, [x21, #4]
	bl	_NG_HCI_BUFF_ACL_FREE
	ldr	w0, [x21, #4]
	bl	_NG_HCI_BUFF_SCO_TOTAL
	ldr	w0, [x21, #4]
	bl	_NG_HCI_BUFF_SCO_FREE
	mov	w22, #0
Lloh3:
	adrp	x8, _NG_HCI_UNIT_INITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_HCI_UNIT_INITED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	b	LBB0_3
LBB0_7:
Lloh6:
	adrp	x24, _NG_HCI_CON_TIMEOUT_PENDING@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NG_HCI_CON_TIMEOUT_PENDING@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	w1, #22
	bl	_ng_hci_lp_discon_ind
	mov	x0, x23
	bl	_ng_hci_free_con
	mov	x0, x22
	bl	_LIST_EMPTY
	cbnz	w0, LBB0_6
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_LIST_FIRST
	mov	x23, x0
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_ng_hci_con_untimeout
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_HCI_CON_TIMEOUT_PENDING,4,2 ; @NG_HCI_CON_TIMEOUT_PENDING
	.comm	_NG_HCI_UNIT_INITED,4,2         ; @NG_HCI_UNIT_INITED
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
