	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_create_hostinfo           ## -- Begin function hpsb_create_hostinfo
	.p2align	4, 0x90
_hpsb_create_hostinfo:                  ## @hpsb_create_hostinfo
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	callq	_hl_get_hostinfo
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_ERR
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_2:
	leal	32(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %r15
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	leaq	32(%rbx), %r15
	movq	%r15, 24(%rbx)
	movq	%r12, (%rbx)
LBB0_5:
	movq	%r14, 16(%rbx)
	movq	%r13, %rdi
	callq	_write_lock_irqsave
	addq	$8, %rbx
	leaq	4(%r13), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_write_unlock_irqrestore
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s called hpsb_create_hostinfo when hostinfo already exists"

	.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	_hpsb_create_hostinfo           ; -- Begin function hpsb_create_hostinfo
	.p2align	2
_hpsb_create_hostinfo:                  ; @hpsb_create_hostinfo
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_hl_get_hostinfo
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_ERR
LBB0_2:
	mov	x21, #0
	b	LBB0_7
LBB0_3:
	add	w0, w22, #32
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.4:
	mov	x23, x0
	mov	x21, x0
	cbz	x22, LBB0_6
; %bb.5:
	add	x21, x23, #32
	str	x21, [x23, #24]
	str	x22, [x23]
LBB0_6:
	str	x20, [x23, #16]
	mov	x0, x19
	bl	_write_lock_irqsave
	add	x0, x23, #8
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_write_unlock_irqrestore
LBB0_7:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s called hpsb_create_hostinfo when hostinfo already exists"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
.subsections_via_symbols
