	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isert_alloc_login_buf
_isert_alloc_login_buf:                 ## @isert_alloc_login_buf
	.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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_ISER_RX_PAYLOAD_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ib_dma_map_single
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ib_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_isert_err
	movq	$0, 8(%r15)
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_kzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r12), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ib_dma_map_single
	movq	%rax, 24(%r15)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ib_dma_mapping_error
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_isert_err
	movq	$0, 24(%r15)
	movq	16(%r15), %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	movl	(%r12), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_ib_dma_unmap_single
LBB0_10:
	movq	(%r15), %rdi
	callq	_kfree
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ## @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"login_req_dma mapping error: %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"login_rsp_dma mapping error: %d\n"

	.no_dead_strip	_isert_alloc_login_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isert_alloc_login_buf
_isert_alloc_login_buf:                 ; @isert_alloc_login_buf
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #1
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
Lloh2:
	adrp	x22, _ISER_RX_PAYLOAD_SIZE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ISER_RX_PAYLOAD_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_ib_dma_map_single
	mov	x1, x0
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_ib_dma_mapping_error
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_isert_err
	str	xzr, [x19, #8]
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	ldr	w0, [x22]
	ldr	w1, [x24]
	bl	_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
	ldr	w2, [x22]
Lloh11:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_ib_dma_map_single
	mov	x1, x0
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_ib_dma_mapping_error
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_isert_err
	str	xzr, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	ldr	x1, [x19, #8]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	bl	_ib_dma_unmap_single
LBB0_9:
	ldr	x0, [x19]
	bl	_kfree
LBB0_10:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ISER_RX_PAYLOAD_SIZE,4,2       ; @ISER_RX_PAYLOAD_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"login_req_dma mapping error: %d\n"

	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"login_rsp_dma mapping error: %d\n"

	.no_dead_strip	_isert_alloc_login_buf
.subsections_via_symbols
