	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_sensor_type
_get_sensor_type:                       ## @get_sensor_type
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_legacy_compatibles@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_string
	movq	_MAX_SENSOR_TYPE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	xorl	%r15d, %r15d
	movq	_sensor_groups@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movl	(%r14), %ebx
	cmpq	%rbx, %r15
	jb	LBB0_10
	jmp	LBB0_13
LBB0_5:
	movq	_MAX_SENSOR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	%r15d, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_legacy_compatibles,8,3         ## @legacy_compatibles
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ibm,opal-sensor"

	.comm	_MAX_SENSOR_TYPE,4,2            ## @MAX_SENSOR_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"sensor-type"

	.comm	_sensor_groups,8,3              ## @sensor_groups
	.no_dead_strip	_get_sensor_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_sensor_type
_get_sensor_type:                       ; @get_sensor_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _legacy_compatibles@GOTPAGE
Lloh1:
	ldr	x20, [x20, _legacy_compatibles@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_of_device_is_compatible
	cbnz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, w0, uxtw
	b.lo	LBB0_2
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_of_device_is_compatible
	cbz	x0, LBB0_11
; %bb.5:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_of_property_read_string
	mov	x8, x0
Lloh6:
	adrp	x19, _MAX_SENSOR_TYPE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _MAX_SENSOR_TYPE@GOTPAGEOFF]
	ldr	w0, [x19]
	cbnz	x8, LBB0_12
; %bb.6:
	cbz	w0, LBB0_12
; %bb.7:
	mov	x20, #0
Lloh8:
	adrp	x21, _sensor_groups@GOTPAGE
Lloh9:
	ldr	x21, [x21, _sensor_groups@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x21]
	ldr	w1, [x8, x20, lsl #2]
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldr	w0, [x19]
	cmp	x20, x0
	b.lo	LBB0_8
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _MAX_SENSOR_TYPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_SENSOR_TYPE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
LBB0_13:
	mov	x0, x20
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_legacy_compatibles,8,3         ; @legacy_compatibles
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ibm,opal-sensor"

	.comm	_MAX_SENSOR_TYPE,4,2            ; @MAX_SENSOR_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"sensor-type"

	.comm	_sensor_groups,8,3              ; @sensor_groups
	.no_dead_strip	_get_sensor_type
.subsections_via_symbols
