	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_device_alloc
_intel_th_device_alloc:                 ## @intel_th_device_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	_INTEL_TH_OUTPUT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	16(%rdi), %r12
	jmp	LBB0_3
LBB0_2:
	movq	8(%rdi), %r12
LBB0_3:
	movq	%r15, %rdi
	callq	_strlen
	leaq	49(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	%r14d, (%rbx)
	movl	%r13d, 4(%rbx)
	movl	40(%rbx), %edi
	movq	%r15, %rsi
	callq	_strcpy
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_device_initialize
	movq	_intel_th_bus@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_intel_th_device_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %ecx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 24(%rbx)
	movq	%r12, 16(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 8(%rbx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_dma_set_coherent_mask
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	testl	%r8d, %r8d
	js	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_set_name
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dev_set_name
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_TH_OUTPUT,4,2            ## @INTEL_TH_OUTPUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_intel_th_bus,4,2               ## @intel_th_bus
	.comm	_intel_th_device_type,8,3       ## @intel_th_device_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d-%s%d"

L_.str.1:                               ## @.str.1
	.asciz	"%d-%s"

	.no_dead_strip	_intel_th_device_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_device_alloc
_intel_th_device_alloc:                 ; @intel_th_device_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _INTEL_TH_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_TH_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x25, [x21, #16]
	b	LBB0_3
LBB0_2:
	ldr	x25, [x21, #8]
LBB0_3:
	mov	x0, x19
	bl	_strlen
	add	x0, x0, #49
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x22, x0
	cbz	x0, LBB0_8
; %bb.4:
	stp	w20, w23, [x22]
	ldr	w0, [x22, #40]
	mov	x1, x19
	bl	_strcpy
	add	x24, x22, #8
	mov	x0, x24
	bl	_device_initialize
Lloh6:
	adrp	x8, _intel_th_bus@GOTPAGE
Lloh7:
	ldr	x8, [x8, _intel_th_bus@GOTPAGEOFF]
Lloh8:
	adrp	x9, _intel_th_device_type@GOTPAGE
Lloh9:
	ldr	x9, [x9, _intel_th_device_type@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w9, [x9, w23, uxtw #2]
	str	x8, [x22, #32]
	str	w9, [x22, #24]
	str	x25, [x22, #16]
	ldur	d0, [x25, #4]
	str	d0, [x22, #8]
	ldr	w1, [x25]
	mov	x0, x24
	bl	_dma_set_coherent_mask
	ldr	w2, [x21]
	tbnz	w20, #31, LBB0_6
; %bb.5:
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x24
	mov	x3, x19
	bl	_dev_set_name
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_TH_OUTPUT,4,2            ; @INTEL_TH_OUTPUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_intel_th_bus,4,2               ; @intel_th_bus
	.comm	_intel_th_device_type,8,3       ; @intel_th_device_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d-%s%d"

l_.str.1:                               ; @.str.1
	.asciz	"%d-%s"

	.no_dead_strip	_intel_th_device_alloc
.subsections_via_symbols
