	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcht_read_config
_cpcht_read_config:                     ## @cpcht_read_config
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	callq	_device_get_softc
	movq	8(%rax), %rdx
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.1:
	movl	$1, %esi
	movl	%ebx, %ecx
	shll	%cl, %esi
	testl	%r13d, %r13d
	jg	LBB0_9
## %bb.2:
	andl	(%rax), %esi
	je	LBB0_9
LBB0_3:
	andl	$31, %ebx
	andl	$7, %r13d
	leal	(%r13,%rbx,8), %eax
	shll	$8, %eax
	orl	%r15d, %eax
	movl	%r12d, %ecx
	shll	$16, %ecx
	movslq	%ecx, %rcx
	addq	$16777216, %rcx                 ## imm = 0x1000000
	xorl	%edi, %edi
	testl	%r12d, %r12d
	cmovgq	%rcx, %rdi
	cltq
	addq	%rax, %rdi
	addq	%rdx, %rdi
	cmpl	$4, %r14d
	je	LBB0_8
## %bb.4:
	cmpl	$2, %r14d
	je	LBB0_7
## %bb.5:
	cmpl	$1, %r14d
	jne	LBB0_9
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_in8rb                          ## TAILCALL
LBB0_9:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_in32rb                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_in16rb                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cpcht_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcht_read_config
_cpcht_read_config:                     ; @cpcht_read_config
	.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, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x20, x1
	bl	_device_get_softc
	ldr	x8, [x0, #8]
	cbnz	w20, LBB0_3
; %bb.1:
	cmp	w23, #0
	b.gt	LBB0_7
; %bb.2:
	ldr	w9, [x0]
	mov	w10, #1
	lsl	w10, w10, w22
	and	w9, w9, w10
	cbz	w9, LBB0_7
LBB0_3:
	and	w9, w23, #0x7
	bfi	w9, w22, #3, #5
	orr	w9, w21, w9, lsl #8
	sxtw	x9, w9
	lsl	w10, w20, #16
	mov	w11, #16777216
	add	x10, x11, w10, sxtw
	cmp	w20, #0
	csel	x10, x10, xzr, gt
	add	x9, x10, x9
	add	x0, x9, x8
	cmp	w19, #4
	b.eq	LBB0_8
; %bb.4:
	cmp	w19, #2
	b.eq	LBB0_9
; %bb.5:
	cmp	w19, #1
	b.ne	LBB0_7
; %bb.6:
	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	_in8rb
LBB0_7:
	mov	w0, #-1
	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_8:
	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	_in32rb
LBB0_9:
	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	_in16rb
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cpcht_read_config
.subsections_via_symbols
