	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_alloc                ## -- Begin function iwl_trans_alloc
	.p2align	4, 0x90
_iwl_trans_alloc:                       ## @iwl_trans_alloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
                                        ## kill: def $edi killed $edi def $rdi
	leal	40(%rdi), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	%r14, 24(%rax)
	movl	$1, (%rax)
	movl	8(%rax), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	8(%rbx), %edi
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movl	$4, %esi
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$0, 4(%r14)
	jne	LBB0_5
## %bb.4:
	xorl	%r15d, %r15d
	cmpl	$0, (%r14)
	sete	%r15b
LBB0_5:
	movl	%r15d, %edi
	callq	_WARN_ON
	movq	%rbx, %r15
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iwl_cmd_pool:%s"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_alloc                ; -- Begin function iwl_trans_alloc
	.p2align	2
_iwl_trans_alloc:                       ; @iwl_trans_alloc
	.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	x20, x2
	mov	x21, x1
	add	w1, w0, #40
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	stp	x21, x20, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	ldr	w22, [x19, #8]
	mov	x0, x21
	bl	_dev_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w1, #4
	mov	w2, #8
	mov	x4, #0
	bl	_kmem_cache_create
	str	w0, [x19, #4]
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
LBB0_6:
	bl	_WARN_ON
LBB0_7:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iwl_cmd_pool:%s"

	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
.subsections_via_symbols
