	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_get_jumboframe_status
_ehea_get_jumboframe_status:            ## @ehea_get_jumboframe_status
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, (%rsi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	_H_PORT_CB4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_H_PORT_CB4_JUMBO@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r12, %r8
	callq	_ehea_h_query_ehea_port
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_free_page
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, (%r12)
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%rcx, %r15
	movl	(%r13), %ecx
	movq	%r12, %r8
	callq	_ehea_h_modify_ehea_port
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.6:
	movl	$1, (%r14)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no mem for cb4\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_H_PORT_CB4,4,2                 ## @H_PORT_CB4
	.comm	_H_PORT_CB4_JUMBO,4,2           ## @H_PORT_CB4_JUMBO
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ehea_get_jumboframe_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_get_jumboframe_status
_ehea_get_jumboframe_status:            ; @ehea_get_jumboframe_status
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
	str	wzr, [x1]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh3:
	adrp	x22, _H_PORT_CB4@GOTPAGE
Lloh4:
	ldr	x22, [x22, _H_PORT_CB4@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh5:
	adrp	x23, _H_PORT_CB4_JUMBO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _H_PORT_CB4_JUMBO@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x4, x19
	bl	_ehea_h_query_ehea_port
Lloh7:
	adrp	x24, _H_SUCCESS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _H_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x19
	bl	_free_page
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w25, #1
	str	w25, [x19]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x4, x19
	bl	_ehea_h_modify_ehea_port
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w21, #0
	str	w25, [x20]
	b	LBB0_6
LBB0_10:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no mem for cb4\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_H_PORT_CB4,4,2                 ; @H_PORT_CB4
	.comm	_H_PORT_CB4_JUMBO,4,2           ; @H_PORT_CB4_JUMBO
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ehea_get_jumboframe_status
.subsections_via_symbols
