	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histb_pcie_host_enable
_histb_pcie_host_enable:                ## @histb_pcie_host_enable
	.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
	callq	_to_dw_pcie_from_pp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_histb_pcie
	movq	%rax, %r14
	movq	(%rbx), %r15
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_3:
	movl	36(%r14), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	36(%r14), %edi
	movl	$1, %esi
	callq	_gpio_set_value_cansleep
LBB0_5:
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_7:
	movl	12(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movl	16(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_11:
	movl	32(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	16(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_13:
	movl	12(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_14:
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
LBB0_15:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_regulator_disable
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	28(%r14), %edi
	callq	_reset_control_assert
	movl	28(%r14), %edi
	callq	_reset_control_deassert
	movl	24(%r14), %edi
	callq	_reset_control_assert
	movl	24(%r14), %edi
	callq	_reset_control_deassert
	movl	20(%r14), %edi
	callq	_reset_control_assert
	movl	20(%r14), %edi
	callq	_reset_control_deassert
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable regulator: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot prepare/enable bus clk\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot prepare/enable sys clk\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot prepare/enable pipe clk\n"

L_.str.4:                               ## @.str.4
	.asciz	"cannot prepare/enable aux clk\n"

	.no_dead_strip	_histb_pcie_host_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histb_pcie_host_enable
_histb_pcie_host_enable:                ; @histb_pcie_host_enable
	.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
	bl	_to_dw_pcie_from_pp
	mov	x20, x0
	bl	_to_histb_pcie
	mov	x19, x0
	ldr	x21, [x20]
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_regulator_enable
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_16
LBB0_3:
	ldr	w0, [x19, #36]
	bl	_gpio_is_valid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #36]
	mov	w1, #1
	bl	_gpio_set_value_cansleep
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x19]
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_7:
	ldr	w0, [x19, #12]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	ldr	w0, [x19, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_13
LBB0_11:
	ldr	w0, [x19, #32]
	bl	_clk_prepare_enable
	mov	x20, x0
	cbz	w0, LBB0_17
; %bb.12:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19, #16]
	bl	_clk_disable_unprepare
LBB0_13:
	ldr	w0, [x19, #12]
	bl	_clk_disable_unprepare
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	x0, [x19]
	cbz	x0, LBB0_16
LBB0_15:
	bl	_regulator_disable
LBB0_16:
	mov	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_17:
	ldr	w0, [x19, #28]
	bl	_reset_control_assert
	ldr	w0, [x19, #28]
	bl	_reset_control_deassert
	ldr	w0, [x19, #24]
	bl	_reset_control_assert
	ldr	w0, [x19, #24]
	bl	_reset_control_deassert
	ldr	w0, [x19, #20]
	bl	_reset_control_assert
	ldr	w0, [x19, #20]
	bl	_reset_control_deassert
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable regulator: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot prepare/enable bus clk\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot prepare/enable sys clk\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot prepare/enable pipe clk\n"

l_.str.4:                               ; @.str.4
	.asciz	"cannot prepare/enable aux clk\n"

	.no_dead_strip	_histb_pcie_host_enable
.subsections_via_symbols
