	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_plpar_hcall9
_ehea_plpar_hcall9:                     ## @ehea_plpar_hcall9
	.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	%r8, %r13
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	subq	$8, %rsp
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_plpar_hcall9
	addq	$48, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.10:
	movq	%r12, %rdi
	callq	_get_longbusy_msecs
	movl	%eax, %edi
	callq	_msleep_interruptible
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_plpar_hcall9
	addq	$48, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r12, %rdi
	callq	_get_longbusy_msecs
	movl	%eax, %edi
	callq	_msleep_interruptible
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_plpar_hcall9
	addq	$48, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movq	%r12, %rdi
	callq	_get_longbusy_msecs
	movl	%eax, %edi
	callq	_msleep_interruptible
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_plpar_hcall9
	addq	$48, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%r12, %rdi
	callq	_get_longbusy_msecs
	movl	%eax, %edi
	callq	_msleep_interruptible
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	48(%rbp)
	pushq	40(%rbp)
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	callq	_plpar_hcall9
	addq	$48, %rsp
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r12, %rdi
	callq	_get_longbusy_msecs
	movl	%eax, %edi
	callq	_msleep_interruptible
	movq	_H_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_15
LBB0_1:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_H_MEHEAPORT_CAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EHEA_BMASK_GET
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	jge	LBB0_15
## %bb.2:
	movq	_H_AUTHORITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r12
	movq	%r14, %rcx
	movq	%r15, %rsi
	movq	16(%rbp), %r8
	movq	24(%rbp), %r10
	movq	32(%rbp), %r11
	movq	40(%rbp), %r14
	movq	48(%rbp), %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_9
## %bb.3:
	movq	_H_MODIFY_HEA_PORT@GOTPCREL(%rip), %rdx
	cmpq	%rsi, (%rdx)
	jne	LBB0_9
## %bb.4:
	movq	_H_PORT_CB4@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_H_PORT_CB4_JUMBO@GOTPCREL(%rip), %rdx
	cmpq	%r13, (%rdx)
	je	LBB0_15
## %bb.6:
	movq	_H_PORT_CB4_SPEED@GOTPCREL(%rip), %rdx
	cmpq	%r13, (%rdx)
	je	LBB0_15
LBB0_7:
	movq	_H_PORT_CB7@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_H_PORT_CB7_DUCQPN@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_15
LBB0_9:
	movups	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movups	32(%rdi), %xmm2
	movups	48(%rdi), %xmm3
	movq	64(%rdi), %rax
	subq	$128, %rsp
	movq	%rax, 112(%rsp)
	movups	%xmm3, 96(%rsp)
	movups	%xmm2, 80(%rsp)
	movups	%xmm1, 64(%rsp)
	movups	%xmm0, 48(%rsp)
	movq	%r15, 40(%rsp)
	movq	%r14, 32(%rsp)
	movq	%r11, 24(%rsp)
	movq	%r10, 16(%rsp)
	movq	%r8, 8(%rsp)
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r13, %r9
	callq	_pr_err
	addq	$128, %rsp
LBB0_15:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H_MEHEAPORT_CAT,4,2            ## @H_MEHEAPORT_CAT
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.comm	_H_AUTHORITY,8,3                ## @H_AUTHORITY
	.comm	_H_MODIFY_HEA_PORT,8,3          ## @H_MODIFY_HEA_PORT
	.comm	_H_PORT_CB4,8,3                 ## @H_PORT_CB4
	.comm	_H_PORT_CB4_JUMBO,8,3           ## @H_PORT_CB4_JUMBO
	.comm	_H_PORT_CB4_SPEED,8,3           ## @H_PORT_CB4_SPEED
	.comm	_H_PORT_CB7,8,3                 ## @H_PORT_CB7
	.comm	_H_PORT_CB7_DUCQPN,8,3          ## @H_PORT_CB7_DUCQPN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opcode=%lx ret=%lx arg1=%lx arg2=%lx arg3=%lx arg4=%lx arg5=%lx arg6=%lx arg7=%lx arg8=%lx arg9=%lx out1=%lx out2=%lx out3=%lx out4=%lx out5=%lx out6=%lx out7=%lx out8=%lx out9=%lx\n"

	.comm	_H_BUSY,8,3                     ## @H_BUSY
	.no_dead_strip	_ehea_plpar_hcall9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_plpar_hcall9
_ehea_plpar_hcall9:                     ; @ehea_plpar_hcall9
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x24, x5
	mov	x25, x4
	mov	x19, x2
	mov	x28, x1
	mov	x23, x0
	ldp	x21, x20, [x29, #24]
	ldr	x26, [x29, #16]
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	stp	x7, x3, [x29, #-96]             ; 16-byte Folded Spill
	bl	_plpar_hcall9
	mov	x27, x0
	bl	_H_IS_LONG_BUSY
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x27
	bl	_get_longbusy_msecs
	bl	_msleep_interruptible
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x23
	mov	x1, x28
	mov	x2, x19
	ldp	x7, x3, [x29, #-96]             ; 16-byte Folded Reload
	mov	x4, x25
	mov	x5, x24
	mov	x6, x22
	bl	_plpar_hcall9
	mov	x27, x0
	bl	_H_IS_LONG_BUSY
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x27
	bl	_get_longbusy_msecs
	bl	_msleep_interruptible
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x23
	mov	x1, x28
	mov	x2, x19
	ldp	x7, x3, [x29, #-96]             ; 16-byte Folded Reload
	mov	x4, x25
	mov	x5, x24
	mov	x6, x22
	bl	_plpar_hcall9
	mov	x27, x0
	bl	_H_IS_LONG_BUSY
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x27
	bl	_get_longbusy_msecs
	bl	_msleep_interruptible
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x23
	mov	x1, x28
	mov	x2, x19
	ldp	x7, x3, [x29, #-96]             ; 16-byte Folded Reload
	mov	x4, x25
	mov	x5, x24
	mov	x6, x22
	bl	_plpar_hcall9
	mov	x27, x0
	bl	_H_IS_LONG_BUSY
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x27
	bl	_get_longbusy_msecs
	bl	_msleep_interruptible
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
	mov	x0, x23
	mov	x1, x28
	mov	x2, x19
	ldp	x7, x3, [x29, #-96]             ; 16-byte Folded Reload
	mov	x4, x25
	mov	x5, x24
	mov	x6, x22
	bl	_plpar_hcall9
	mov	x27, x0
	bl	_H_IS_LONG_BUSY
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x27
	bl	_get_longbusy_msecs
	bl	_msleep_interruptible
Lloh0:
	adrp	x8, _H_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	x27, [x8]
	b	LBB0_12
LBB0_6:
	str	x28, [sp, #112]                 ; 8-byte Folded Spill
	stur	x26, [x29, #-104]               ; 8-byte Folded Spill
	ldp	x28, x1, [x29, #-96]            ; 16-byte Folded Reload
Lloh3:
	adrp	x8, _H_MEHEAPORT_CAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H_MEHEAPORT_CAT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x26, x1
	bl	_EHEA_BMASK_GET
Lloh6:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x27, x8
	b.ge	LBB0_12
; %bb.7:
	mov	x4, x26
Lloh9:
	adrp	x8, _H_AUTHORITY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_AUTHORITY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _H_MODIFY_HEA_PORT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _H_MODIFY_HEA_PORT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x27, x8
	ccmp	x9, x23, #0, eq
	mov	x10, x28
	ldur	x13, [x29, #-104]               ; 8-byte Folded Reload
	ldr	x14, [sp, #112]                 ; 8-byte Folded Reload
	b.ne	LBB0_11
; %bb.8:
Lloh15:
	adrp	x8, _H_PORT_CB4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H_PORT_CB4@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _H_PORT_CB4_JUMBO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _H_PORT_CB4_JUMBO@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _H_PORT_CB4_SPEED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _H_PORT_CB4_SPEED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x25
	ccmp	x9, x25, #4, ne
	b.eq	LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _H_PORT_CB7@GOTPAGE
Lloh25:
	ldr	x8, [x8, _H_PORT_CB7@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _H_PORT_CB7_DUCQPN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _H_PORT_CB7_DUCQPN@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x9, x25, #0, eq
	b.eq	LBB0_12
LBB0_11:
	ldp	q0, q1, [x14]
	ldp	q2, q3, [x14, #32]
	ldr	x8, [x14, #64]
	str	x8, [sp, #96]
	stp	q2, q3, [sp, #64]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	stp	q0, q1, [sp, #32]
	stp	x21, x20, [sp, #16]
	stp	x10, x13, [sp]
	mov	x1, x23
	mov	x2, x27
	mov	x3, x19
	mov	x5, x25
	mov	x6, x24
	mov	x7, x22
	bl	_pr_err
LBB0_12:
	mov	x0, x27
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_H_MEHEAPORT_CAT,4,2            ; @H_MEHEAPORT_CAT
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.comm	_H_AUTHORITY,8,3                ; @H_AUTHORITY
	.comm	_H_MODIFY_HEA_PORT,8,3          ; @H_MODIFY_HEA_PORT
	.comm	_H_PORT_CB4,8,3                 ; @H_PORT_CB4
	.comm	_H_PORT_CB4_JUMBO,8,3           ; @H_PORT_CB4_JUMBO
	.comm	_H_PORT_CB4_SPEED,8,3           ; @H_PORT_CB4_SPEED
	.comm	_H_PORT_CB7,8,3                 ; @H_PORT_CB7
	.comm	_H_PORT_CB7_DUCQPN,8,3          ; @H_PORT_CB7_DUCQPN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opcode=%lx ret=%lx arg1=%lx arg2=%lx arg3=%lx arg4=%lx arg5=%lx arg6=%lx arg7=%lx arg8=%lx arg9=%lx out1=%lx out2=%lx out3=%lx out4=%lx out5=%lx out6=%lx out7=%lx out8=%lx out9=%lx\n"

	.comm	_H_BUSY,8,3                     ; @H_BUSY
	.no_dead_strip	_ehea_plpar_hcall9
.subsections_via_symbols
