	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_query_port              ## -- Begin function hipz_h_query_port
	.p2align	4, 0x90
_hipz_h_query_port:                     ## @hipz_h_query_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	%rdx, %rdi
	callq	_virt_to_abs
	movq	_EHCA_PAGESIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_ehca_gen_err
	movq	_H_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_H_QUERY_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_ehca_plpar_hcall_norets
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	_ehca_debug_level@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_ehca_dmp
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHCA_PAGESIZE,4,2              ## @EHCA_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"response block not page aligned"

	.comm	_H_PARAMETER,4,2                ## @H_PARAMETER
	.comm	_H_QUERY_PORT,4,2               ## @H_QUERY_PORT
	.comm	_ehca_debug_level,4,2           ## @ehca_debug_level
L_.str.1:                               ## @.str.1
	.asciz	"response_block"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hipz_h_query_port              ; -- Begin function hipz_h_query_port
	.p2align	2
_hipz_h_query_port:                     ; @hipz_h_query_port
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_virt_to_abs
Lloh0:
	adrp	x8, _EHCA_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EHCA_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ehca_gen_err
Lloh5:
	adrp	x8, _H_PARAMETER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_PARAMETER@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_4
LBB0_2:
	mov	x3, x0
Lloh8:
	adrp	x8, _H_QUERY_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_QUERY_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x20
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_ehca_plpar_hcall_norets
	mov	x20, x0
Lloh11:
	adrp	x8, _ehca_debug_level@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ehca_debug_level@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #64
	bl	_ehca_dmp
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EHCA_PAGESIZE,4,2              ; @EHCA_PAGESIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"response block not page aligned"

	.comm	_H_PARAMETER,4,2                ; @H_PARAMETER
	.comm	_H_QUERY_PORT,4,2               ; @H_QUERY_PORT
	.comm	_ehca_debug_level,4,2           ; @ehca_debug_level
l_.str.1:                               ; @.str.1
	.asciz	"response_block"

.subsections_via_symbols
