	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_new_client                 ## -- Begin function hsi_new_client
	.p2align	4, 0x90
_hsi_new_client:                        ## @hsi_new_client
	.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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rbx
	movups	40(%r14), %xmm0
	movups	%xmm0, (%r15)
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.2:
	movslq	(%rbx), %rsi
	shlq	$6, %rsi
	movq	48(%r14), %rdi
	movl	(%r13), %edx
	callq	_kmemdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movups	24(%r14), %xmm0
	movups	%xmm0, 48(%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_5
## %bb.4:
	movslq	48(%rbx), %rsi
	shlq	$6, %rsi
	movq	32(%r14), %rdi
	movl	(%r13), %edx
	callq	_kmemdup
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:
	addq	$16, %r15
	movq	_hsi_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	_hsi_client_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movl	16(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_device_register
	testq	%rax, %rax
	jns	LBB0_12
## %bb.8:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	%r15, %rdi
	callq	_put_device
	jmp	LBB0_12
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_hsi_bus_type,4,2               ## @hsi_bus_type
	.comm	_hsi_client_release,4,2         ## @hsi_client_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"hsi: failed to register client: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsi_new_client                 ; -- Begin function hsi_new_client
	.p2align	2
_hsi_new_client:                        ; @hsi_new_client
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
	ldur	q0, [x20, #40]
	str	q0, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldrsw	x8, [x19]
	lsl	x1, x8, #6
	ldr	x0, [x20, #48]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
LBB0_3:
	ldur	q0, [x20, #24]
	str	q0, [x19, #48]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_5
; %bb.4:
	ldrsw	x8, [x19, #48]
	lsl	x1, x8, #6
	ldr	x0, [x20, #32]
	ldr	w2, [x22]
	bl	_kmemdup
	str	x0, [x19, #56]
	cbz	x0, LBB0_9
LBB0_5:
	add	x22, x19, #16
Lloh2:
	adrp	x8, _hsi_bus_type@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hsi_bus_type@GOTPAGEOFF]
	stp	x21, x8, [x19, #32]
Lloh4:
	adrp	x8, _hsi_client_release@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hsi_client_release@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w2, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_set_name
	ldr	w8, [x20, #16]
	str	w8, [x19, #20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_7:
	mov	x0, x22
	bl	_device_register
	tbz	x0, #63, LBB0_11
; %bb.8:
	ldr	w1, [x20]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x0, x22
	bl	_put_device
	b	LBB0_11
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_hsi_bus_type,4,2               ; @hsi_bus_type
	.comm	_hsi_client_release,4,2         ; @hsi_client_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"hsi: failed to register client: %s\n"

.subsections_via_symbols
