	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coretemp_device_add
_coretemp_device_add:                   ## @coretemp_device_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_topology_logical_die_id
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	movq	_DRVNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_platform_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_platform_device_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_platform_device_put
	movl	%r15d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	_zone_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	%r14, (%rax,%rcx,8)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRVNAME,4,2                    ## @DRVNAME
	.comm	_zone_devices,8,3               ## @zone_devices
	.no_dead_strip	_coretemp_device_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coretemp_device_add
_coretemp_device_add:                   ; @coretemp_device_add
	.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
	bl	_topology_logical_die_id
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _DRVNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRVNAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_platform_device_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_platform_device_add
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_platform_device_put
	mov	x0, x21
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	b	_ERR_PTR
LBB0_6:
Lloh6:
	adrp	x8, _zone_devices@GOTPAGE
Lloh7:
	ldr	x8, [x8, _zone_devices@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x20, [x8, w19, uxtw #3]
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRVNAME,4,2                    ; @DRVNAME
	.comm	_zone_devices,8,3               ; @zone_devices
	.no_dead_strip	_coretemp_device_add
.subsections_via_symbols
