	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atxp1_detect
_atxp1_detect:                          ## @atxp1_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	%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	%rdx, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movl	$62, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	movl	$63, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movl	$254, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	$255, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_i2c_smbus_read_byte_data
	cmpl	%r13d, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	movl	$17, %esi
	callq	_i2c_smbus_read_byte_data
	cmpl	%r13d, %eax
	jne	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$90, %ecx
	jne	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strlcpy
	jmp	LBB0_7
LBB0_12:
	movslq	%eax, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$34, %rdx
	addl	%ecx, %edx
	leal	(%rdx,%rdx), %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_13:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atxp1: Not supporting VRM %d.%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"atxp1"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_atxp1_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atxp1_detect
_atxp1_detect:                          ; @atxp1_detect
	.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, x2
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_check_functionality
	cbz	w0, LBB0_10
; %bb.1:
	mov	x0, x21
	mov	w1, #62
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_10
; %bb.2:
	mov	x0, x21
	mov	w1, #63
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x21
	mov	w1, #254
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x21
	mov	w1, #255
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	mov	x0, x21
	mov	w1, #16
	bl	_i2c_smbus_read_byte_data
	cmp	w0, w22
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x21
	mov	w1, #17
	bl	_i2c_smbus_read_byte_data
	cmp	w0, w22
	b.ne	LBB0_10
; %bb.7:
	bl	_vid_which_vrm
	and	w8, w0, #0xfffffffe
	cmp	w8, #90
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w2, w8, w9
	mov	w8, #10
	msub	w3, w2, w8, w0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atxp1: Not supporting VRM %d.%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"atxp1"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_atxp1_detect
.subsections_via_symbols
