	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirdev_alloc_buffers
_sirdev_alloc_buffers:                  ## @sirdev_alloc_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SIRBUF_ALLOCSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rdi)
	movq	_IRDA_SKB_MAX_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 40(%rdi)
	movl	80(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	___netdev_alloc_skb
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_skb_reserve
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	72(%rbx), %edi
	movl	(%r14), %esi
	callq	_kmalloc
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, 64(%rbx)
	movq	16(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	$0, 48(%rbx)
	movq	$0, 8(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_OUTSIDE_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movq	32(%rbx), %rdi
	callq	_kfree_skb
	movq	$0, 32(%rbx)
	movq	$0, 16(%rbx)
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIRBUF_ALLOCSIZE,4,2           ## @SIRBUF_ALLOCSIZE
	.comm	_IRDA_SKB_MAX_MTU,4,2           ## @IRDA_SKB_MAX_MTU
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_OUTSIDE_FRAME,4,2              ## @OUTSIDE_FRAME
	.no_dead_strip	_sirdev_alloc_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirdev_alloc_buffers
_sirdev_alloc_buffers:                  ; @sirdev_alloc_buffers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SIRBUF_ALLOCSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIRBUF_ALLOCSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #72]
Lloh3:
	adrp	x8, _IRDA_SKB_MAX_MTU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRDA_SKB_MAX_MTU@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	str	w1, [x0, #40]
	ldr	w0, [x0, #80]
Lloh6:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	___netdev_alloc_skb
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w1, #1
	bl	_skb_reserve
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w0, [x19, #72]
	ldr	w1, [x20]
	bl	_kmalloc
	str	x0, [x19, #56]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #64]
	ldr	x8, [x19, #16]
	str	x8, [x19, #24]
	str	xzr, [x19, #48]
	str	xzr, [x19, #8]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _OUTSIDE_FRAME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _OUTSIDE_FRAME@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #32]
	bl	_kfree_skb
	str	xzr, [x19, #32]
	str	xzr, [x19, #16]
LBB0_4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SIRBUF_ALLOCSIZE,4,2           ; @SIRBUF_ALLOCSIZE
	.comm	_IRDA_SKB_MAX_MTU,4,2           ; @IRDA_SKB_MAX_MTU
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_OUTSIDE_FRAME,4,2              ; @OUTSIDE_FRAME
	.no_dead_strip	_sirdev_alloc_buffers
.subsections_via_symbols
