	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histb_combphy_xlate
_histb_combphy_xlate:                   ## @histb_combphy_xlate
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	cmpl	$0, (%rbx)
	jle	LBB0_1
## %bb.4:
	movq	%rax, %r15
	leaq	8(%rax), %rdi
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movq	_PHY_TYPE_SATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movq	_PHY_TYPE_USB3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_6
## %bb.7:
	callq	_is_mode_fixed
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	8(%r15), %rdx
	movq	16(%r15), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_9
LBB0_10:
	movq	(%r15), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid number of arguments\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHY_TYPE_SATA,8,3              ## @PHY_TYPE_SATA
	.comm	_PHY_TYPE_USB3,8,3              ## @PHY_TYPE_USB3
L_.str.1:                               ## @.str.1
	.asciz	"invalid phy mode select argument\n"

L_.str.2:                               ## @.str.2
	.asciz	"mode select %d mismatch fixed phy mode %d\n"

	.no_dead_strip	_histb_combphy_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histb_combphy_xlate
_histb_combphy_xlate:                   ; @histb_combphy_xlate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	str	x8, [x0, #8]!
Lloh0:
	adrp	x9, _PHY_TYPE_SATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_SATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PHY_TYPE_USB3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PHY_TYPE_USB3@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	bl	_is_mode_fixed
	cbz	x0, LBB0_6
; %bb.5:
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
	ldr	x0, [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
	add	sp, sp, #64
	ret
LBB0_7:
	stp	x8, x9, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #64
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid number of arguments\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHY_TYPE_SATA,8,3              ; @PHY_TYPE_SATA
	.comm	_PHY_TYPE_USB3,8,3              ; @PHY_TYPE_USB3
l_.str.1:                               ; @.str.1
	.asciz	"invalid phy mode select argument\n"

l_.str.2:                               ; @.str.2
	.asciz	"mode select %d mismatch fixed phy mode %d\n"

	.no_dead_strip	_histb_combphy_xlate
.subsections_via_symbols
