	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_log_resize                ## -- Begin function tipc_log_resize
	.p2align	4, 0x90
_tipc_log_resize:                       ## @tipc_log_resize
	.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
	movl	%edi, %r14d
	movq	_print_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_TIPC_LOG@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_kfree
	movq	(%r15), %rbx
	movq	$0, 8(%rbx)
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	movq	_TIPC_PB_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	cmovgl	%eax, %r14d
	movl	(%rbx), %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kmalloc
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_tipc_printbuf_init
	movq	(%r15), %rax
	movl	%r12d, (%rax)
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax)
	sete	%bl
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_print_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_print_lock,4,2                 ## @print_lock
	.comm	_TIPC_LOG,8,3                   ## @TIPC_LOG
	.comm	_TIPC_PB_MIN_SIZE,4,2           ## @TIPC_PB_MIN_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_log_resize                ; -- Begin function tipc_log_resize
	.p2align	2
_tipc_log_resize:                       ; @tipc_log_resize
	.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	x0, _print_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _print_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x21, _TIPC_LOG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TIPC_LOG@GOTPAGEOFF]
	ldr	x20, [x21]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_kfree
	ldr	x20, [x21]
	str	xzr, [x20, #8]
LBB0_2:
	cbz	w19, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _TIPC_PB_MIN_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIPC_PB_MIN_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w19, w8, w19, gt
	ldr	w22, [x20]
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kmalloc
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_tipc_printbuf_init
	ldr	x8, [x21]
	str	w22, [x8]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w19, eq
LBB0_4:
Lloh10:
	adrp	x0, _print_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _print_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_print_lock,4,2                 ; @print_lock
	.comm	_TIPC_LOG,8,3                   ; @TIPC_LOG
	.comm	_TIPC_PB_MIN_SIZE,4,2           ; @TIPC_PB_MIN_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
.subsections_via_symbols
