	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_gunzip_init
_bnx2x_gunzip_init:                     ## @bnx2x_gunzip_init
	.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	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_FW_BUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	8(%r14), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %esi
	movl	$8, %edi
	callq	_kmalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_zlib_inflate_workspacesize
	movl	%eax, %edi
	callq	_vmalloc
	movq	24(%r14), %rdi
	movq	%rax, (%rdi)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	callq	_kfree
	movq	$0, 24(%r14)
LBB0_4:
	movq	16(%r14), %rdi
	movl	(%r15), %esi
	movq	(%r14), %rdx
	movl	8(%r14), %ecx
	callq	_dma_free_coherent
	movq	$0, (%r14)
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_BUF_SIZE,4,2                ## @FW_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot allocate firmware buffer for un-compression\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bnx2x_gunzip_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_gunzip_init
_bnx2x_gunzip_init:                     ; @bnx2x_gunzip_init
	.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, x0
Lloh0:
	adrp	x20, _FW_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FW_BUF_SIZE@GOTPAGEOFF]
	ldr	x0, [x0, #16]
	ldr	w1, [x20]
	add	x2, x19, #8
Lloh2:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_dma_alloc_coherent
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w1, [x21]
	mov	w0, #8
	bl	_kmalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.2:
	bl	_zlib_inflate_workspacesize
	bl	_vmalloc
	mov	x8, x0
	ldr	x0, [x19, #24]
	str	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	bl	_kfree
	str	xzr, [x19, #24]
LBB0_5:
	ldr	x0, [x19, #16]
	ldr	w1, [x20]
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
	bl	_dma_free_coherent
	str	xzr, [x19]
LBB0_6:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_BUF_SIZE,4,2                ; @FW_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate firmware buffer for un-compression\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bnx2x_gunzip_init
.subsections_via_symbols
