	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histb_combphy_set_mode
_histb_combphy_set_mode:                ## @histb_combphy_set_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	(%rdi), %r14
	movq	%r15, %rdi
	callq	_is_mode_fixed
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.4:
	cltq
	leaq	l_switch.table.histb_combphy_set_mode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	20(%rbx), %esi
	movl	16(%rbx), %edx
	movb	12(%rbx), %cl
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBPHY_MODE_SATA,4,2          ## @COMBPHY_MODE_SATA
	.comm	_COMBPHY_MODE_PCIE,4,2          ## @COMBPHY_MODE_PCIE
	.comm	_COMBPHY_MODE_USB3,4,2          ## @COMBPHY_MODE_USB3
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_histb_combphy_set_mode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.histb_combphy_set_mode
l_switch.table.histb_combphy_set_mode:
	.quad	_COMBPHY_MODE_USB3
	.quad	_COMBPHY_MODE_SATA
	.quad	_COMBPHY_MODE_PCIE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histb_combphy_set_mode
_histb_combphy_set_mode:                ; @histb_combphy_set_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	mov	x21, x0
	ldr	x19, [x21], #8
	mov	x0, x21
	bl	_is_mode_fixed
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, l_switch.table.histb_combphy_set_mode@PAGE
Lloh1:
	add	x9, x9, l_switch.table.histb_combphy_set_mode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	ldp	w2, w1, [x20, #16]
	ldr	w9, [x20, #12]
	lsl	w3, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_update_bits
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBPHY_MODE_SATA,4,2          ; @COMBPHY_MODE_SATA
	.comm	_COMBPHY_MODE_PCIE,4,2          ; @COMBPHY_MODE_PCIE
	.comm	_COMBPHY_MODE_USB3,4,2          ; @COMBPHY_MODE_USB3
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_histb_combphy_set_mode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.histb_combphy_set_mode
l_switch.table.histb_combphy_set_mode:
	.quad	_COMBPHY_MODE_USB3
	.quad	_COMBPHY_MODE_SATA
	.quad	_COMBPHY_MODE_PCIE

.subsections_via_symbols
