	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbus_sch_probe
_smbus_sch_probe:                       ## @smbus_sch_probe
	.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	%rdi, %r14
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movl	4(%r14), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_request_region
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %edx
	movq	_sch_smba@GOTPCREL(%rip), %r15
	movl	%edx, (%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_sch_adapter@GOTPCREL(%rip), %rbx
	movq	%r14, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	$0, (%r15)
	jmp	LBB0_7
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_sch_smba@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IO,4,2              ## @IORESOURCE_IO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus region 0x%x already in use!\n"

	.comm	_sch_smba,4,2                   ## @sch_smba
L_.str.1:                               ## @.str.1
	.asciz	"SMBA = 0x%X\n"

	.comm	_sch_adapter,16,3               ## @sch_adapter
L_.str.2:                               ## @.str.2
	.asciz	"SMBus SCH adapter at %04x"

	.no_dead_strip	_smbus_sch_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbus_sch_probe
_smbus_sch_probe:                       ; @smbus_sch_probe
	.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	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	ldr	w3, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_request_region
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w2, [x20]
Lloh3:
	adrp	x21, _sch_smba@GOTPAGE
Lloh4:
	ldr	x21, [x21, _sch_smba@GOTPAGEOFF]
	str	w2, [x21]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh7:
	adrp	x20, _sch_adapter@GOTPAGE
Lloh8:
	ldr	x20, [x20, _sch_adapter@GOTPAGEOFF]
	str	x19, [x20, #8]
	ldr	w0, [x20]
	ldr	w3, [x21]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x20
	bl	_i2c_add_adapter
	cbz	w0, LBB0_6
; %bb.3:
	str	wzr, [x21]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _sch_smba@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sch_smba@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus region 0x%x already in use!\n"

	.comm	_sch_smba,4,2                   ; @sch_smba
l_.str.1:                               ; @.str.1
	.asciz	"SMBA = 0x%X\n"

	.comm	_sch_adapter,16,3               ; @sch_adapter
l_.str.2:                               ; @.str.2
	.asciz	"SMBus SCH adapter at %04x"

	.no_dead_strip	_smbus_sch_probe
.subsections_via_symbols
