	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fschmd_detect
_fschmd_detect:                         ## @fschmd_detect
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jg	LBB0_18
## %bb.3:
	movq	_FSCHMD_REG_IDENT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movb	%al, -28(%rbp)
	movq	_FSCHMD_REG_IDENT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movb	%al, -27(%rbp)
	movq	_FSCHMD_REG_IDENT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movb	%al, -26(%rbp)
	movb	$0, -25(%rbp)
	cmpl	$4670800, -28(%rbp)             ## imm = 0x474550
	je	LBB0_4
## %bb.5:
	cmpl	$5391688, -28(%rbp)             ## imm = 0x524548
	je	LBB0_6
## %bb.7:
	cmpl	$5849939, -28(%rbp)             ## imm = 0x594353
	je	LBB0_8
## %bb.9:
	cmpl	$4411976, -28(%rbp)             ## imm = 0x435248
	je	LBB0_10
## %bb.11:
	cmpl	$4476232, -28(%rbp)             ## imm = 0x444D48
	je	LBB0_12
## %bb.13:
	cmpl	$5456968, -28(%rbp)             ## imm = 0x534448
	je	LBB0_14
## %bb.15:
	cmpl	$5003603, -28(%rbp)             ## imm = 0x4C5953
	je	LBB0_16
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_4:
	movq	_fscpos@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	_fscher@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_8:
	movq	_fscscy@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_fschrc@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movq	_fschmd@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_fschds@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_fscsyl@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ebx
LBB0_18:
	movl	(%r14), %edi
	movq	_fschmd_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	-4(%rax,%rcx,4), %esi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FSCHMD_REG_IDENT_0,4,2         ## @FSCHMD_REG_IDENT_0
	.comm	_FSCHMD_REG_IDENT_1,4,2         ## @FSCHMD_REG_IDENT_1
	.comm	_FSCHMD_REG_IDENT_2,4,2         ## @FSCHMD_REG_IDENT_2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PEG"

	.comm	_fscpos,4,2                     ## @fscpos
L_.str.1:                               ## @.str.1
	.asciz	"HER"

	.comm	_fscher,4,2                     ## @fscher
L_.str.2:                               ## @.str.2
	.asciz	"SCY"

	.comm	_fscscy,4,2                     ## @fscscy
L_.str.3:                               ## @.str.3
	.asciz	"HRC"

	.comm	_fschrc,4,2                     ## @fschrc
L_.str.4:                               ## @.str.4
	.asciz	"HMD"

	.comm	_fschmd,4,2                     ## @fschmd
L_.str.5:                               ## @.str.5
	.asciz	"HDS"

	.comm	_fschds,4,2                     ## @fschds
L_.str.6:                               ## @.str.6
	.asciz	"SYL"

	.comm	_fscsyl,4,2                     ## @fscsyl
	.comm	_fschmd_id,8,3                  ## @fschmd_id
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_fschmd_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fschmd_detect
_fschmd_detect:                         ; @fschmd_detect
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_9
; %bb.1:
	cmp	w21, #0
	b.gt	LBB0_18
; %bb.2:
Lloh3:
	adrp	x8, _FSCHMD_REG_IDENT_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FSCHMD_REG_IDENT_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	strb	w0, [sp, #12]
Lloh6:
	adrp	x8, _FSCHMD_REG_IDENT_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSCHMD_REG_IDENT_1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	strb	w0, [sp, #13]
Lloh9:
	adrp	x8, _FSCHMD_REG_IDENT_2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FSCHMD_REG_IDENT_2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	strb	w0, [sp, #14]
	strb	wzr, [sp, #15]
	ldr	w8, [sp, #12]
	sub	w8, w8, #1140, lsl #12          ; =4669440
	cmp	w8, #1360
	b.eq	LBB0_10
; %bb.3:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1316, lsl #12          ; =5390336
	cmp	w8, #1352
	b.eq	LBB0_11
; %bb.4:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1428, lsl #12          ; =5849088
	cmp	w8, #851
	b.eq	LBB0_12
; %bb.5:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1077, lsl #12          ; =4411392
	cmp	w8, #584
	b.eq	LBB0_13
; %bb.6:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1092, lsl #12          ; =4472832
	cmp	w8, #3400
	b.eq	LBB0_14
; %bb.7:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1332, lsl #12          ; =5455872
	cmp	w8, #1096
	b.eq	LBB0_15
; %bb.8:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1221, lsl #12          ; =5001216
	cmp	w8, #2387
	b.eq	LBB0_16
LBB0_9:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_10:
Lloh15:
	adrp	x8, _fscpos@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fscpos@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh17:
	adrp	x8, _fscher@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fscher@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh19:
	adrp	x8, _fscscy@GOTPAGE
Lloh20:
	ldr	x8, [x8, _fscscy@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
Lloh21:
	adrp	x8, _fschrc@GOTPAGE
Lloh22:
	ldr	x8, [x8, _fschrc@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh23:
	adrp	x8, _fschmd@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fschmd@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh25:
	adrp	x8, _fschds@GOTPAGE
Lloh26:
	ldr	x8, [x8, _fschds@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh27:
	adrp	x8, _fscsyl@GOTPAGE
Lloh28:
	ldr	x8, [x8, _fscsyl@GOTPAGEOFF]
LBB0_17:
	ldr	w21, [x8]
LBB0_18:
	ldr	w0, [x19]
Lloh29:
	adrp	x8, _fschmd_id@GOTPAGE
Lloh30:
	ldr	x8, [x8, _fschmd_id@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x8, x8, w21, sxtw #2
	ldur	w1, [x8, #-4]
Lloh32:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	bl	_strlcpy
	mov	w0, #0
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FSCHMD_REG_IDENT_0,4,2         ; @FSCHMD_REG_IDENT_0
	.comm	_FSCHMD_REG_IDENT_1,4,2         ; @FSCHMD_REG_IDENT_1
	.comm	_FSCHMD_REG_IDENT_2,4,2         ; @FSCHMD_REG_IDENT_2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PEG"

	.comm	_fscpos,4,2                     ; @fscpos
l_.str.1:                               ; @.str.1
	.asciz	"HER"

	.comm	_fscher,4,2                     ; @fscher
l_.str.2:                               ; @.str.2
	.asciz	"SCY"

	.comm	_fscscy,4,2                     ; @fscscy
l_.str.3:                               ; @.str.3
	.asciz	"HRC"

	.comm	_fschrc,4,2                     ; @fschrc
l_.str.4:                               ; @.str.4
	.asciz	"HMD"

	.comm	_fschmd,4,2                     ; @fschmd
l_.str.5:                               ; @.str.5
	.asciz	"HDS"

	.comm	_fschds,4,2                     ; @fschds
l_.str.6:                               ; @.str.6
	.asciz	"SYL"

	.comm	_fscsyl,4,2                     ; @fscsyl
	.comm	_fschmd_id,8,3                  ; @fschmd_id
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_fschmd_detect
.subsections_via_symbols
