	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_modify_port             ## -- Begin function hipz_h_modify_port
	.p2align	4, 0x90
_hipz_h_modify_port:                    ## @hipz_h_modify_port
	.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	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_IB_PORT_SHUTDOWN@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_H_MP_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_EHCA_BMASK_SET
	orl	%eax, %ebx
LBB0_2:
	movq	_IB_PORT_INIT_TYPE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_H_MP_INIT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_EHCA_BMASK_SET
	orl	%eax, %ebx
LBB0_4:
	movq	_IB_PORT_RESET_QKEY_CNTR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_H_MP_RESET_QKEY_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_EHCA_BMASK_SET
	orl	%eax, %ebx
LBB0_6:
	movq	_H_MODIFY_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ehca_plpar_hcall_norets
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_SHUTDOWN,4,2           ## @IB_PORT_SHUTDOWN
	.comm	_H_MP_SHUTDOWN,4,2              ## @H_MP_SHUTDOWN
	.comm	_IB_PORT_INIT_TYPE,4,2          ## @IB_PORT_INIT_TYPE
	.comm	_H_MP_INIT_TYPE,4,2             ## @H_MP_INIT_TYPE
	.comm	_IB_PORT_RESET_QKEY_CNTR,4,2    ## @IB_PORT_RESET_QKEY_CNTR
	.comm	_H_MP_RESET_QKEY_CTR,4,2        ## @H_MP_RESET_QKEY_CTR
	.comm	_H_MODIFY_PORT,4,2              ## @H_MODIFY_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_modify_port             ; -- Begin function hipz_h_modify_port
	.p2align	2
_hipz_h_modify_port:                    ; @hipz_h_modify_port
	.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	x22, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IB_PORT_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_PORT_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _H_MP_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H_MP_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_EHCA_BMASK_SET
	orr	w19, w0, w19
LBB0_2:
Lloh6:
	adrp	x8, _IB_PORT_INIT_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PORT_INIT_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _H_MP_INIT_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_MP_INIT_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_EHCA_BMASK_SET
	orr	w19, w0, w19
LBB0_4:
Lloh12:
	adrp	x8, _IB_PORT_RESET_QKEY_CNTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_PORT_RESET_QKEY_CNTR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _H_MP_RESET_QKEY_CTR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H_MP_RESET_QKEY_CTR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_EHCA_BMASK_SET
	orr	w19, w0, w19
LBB0_6:
Lloh18:
	adrp	x8, _H_MODIFY_PORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _H_MODIFY_PORT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	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	_ehca_plpar_hcall_norets
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_SHUTDOWN,4,2           ; @IB_PORT_SHUTDOWN
	.comm	_H_MP_SHUTDOWN,4,2              ; @H_MP_SHUTDOWN
	.comm	_IB_PORT_INIT_TYPE,4,2          ; @IB_PORT_INIT_TYPE
	.comm	_H_MP_INIT_TYPE,4,2             ; @H_MP_INIT_TYPE
	.comm	_IB_PORT_RESET_QKEY_CNTR,4,2    ; @IB_PORT_RESET_QKEY_CNTR
	.comm	_H_MP_RESET_QKEY_CTR,4,2        ; @H_MP_RESET_QKEY_CTR
	.comm	_H_MODIFY_PORT,4,2              ; @H_MODIFY_PORT
.subsections_via_symbols
