	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pasemi_smb_probe
_pasemi_smb_probe:                      ## @pasemi_smb_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
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_pci_resource_flags
	movq	_IORESOURCE_IO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, 48(%rax)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 4(%r15)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_len
	movl	%eax, (%r15)
	movl	4(%r15), %edi
	movq	_pasemi_smb_driver@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rbx
	addq	$8, %rbx
	movl	%eax, 44(%r15)
	movl	4(%r15), %ecx
	movl	40(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movq	_smbus_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r15)
	movq	%r15, 24(%r15)
	movq	%r14, 16(%r15)
	movq	_REG_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CTL_MTR@GOTPCREL(%rip), %rax
	movq	_CTL_MRR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CLK_100K_DIV@GOTPCREL(%rip), %rax
	movq	_CTL_CLK_M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	orl	%ecx, %edx
	movq	%r15, %rdi
	callq	_reg_write
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_release_region
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
LBB0_10:
	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	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pasemi_smb_driver,4,2          ## @pasemi_smb_driver
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PA Semi SMBus adapter at 0x%lx"

	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
	.comm	_smbus_algorithm,4,2            ## @smbus_algorithm
	.comm	_REG_CTL,4,2                    ## @REG_CTL
	.comm	_CTL_MTR,4,2                    ## @CTL_MTR
	.comm	_CTL_MRR,4,2                    ## @CTL_MRR
	.comm	_CLK_100K_DIV,4,2               ## @CLK_100K_DIV
	.comm	_CTL_CLK_M,4,2                  ## @CTL_CLK_M
	.no_dead_strip	_pasemi_smb_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pasemi_smb_probe
_pasemi_smb_probe:                      ; @pasemi_smb_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	x20, x0
	mov	w1, #0
	bl	_pci_resource_flags
Lloh0:
	adrp	x8, _IORESOURCE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_IO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #48]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	bl	_pci_resource_len
	mov	x1, x0
	str	w0, [x19]
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _pasemi_smb_driver@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pasemi_smb_driver@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_request_region
	cbz	w0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w0, [x19, #40]
	ldr	w3, [x19, #4]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh14:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh16:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x21, x19
	str	w8, [x21, #8]!
Lloh20:
	adrp	x8, _smbus_algorithm@GOTPAGE
Lloh21:
	ldr	x8, [x8, _smbus_algorithm@GOTPAGEOFF]
	stp	x19, x8, [x19, #24]
	str	x20, [x19, #16]
Lloh22:
	adrp	x8, _REG_CTL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_CTL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _CTL_MTR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CTL_MTR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _CTL_MRR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CTL_MRR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _CLK_100K_DIV@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CLK_100K_DIV@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _CTL_CLK_M@GOTPAGE
Lloh35:
	ldr	x10, [x10, _CTL_CLK_M@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w2, w8, w9
	mov	x0, x19
	bl	_reg_write
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldp	w1, w0, [x19]
	bl	_release_region
	b	LBB0_9
LBB0_5:
Lloh37:
	adrp	x8, _ENODEV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
Lloh41:
	adrp	x8, _EBUSY@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x19
	bl	_kfree
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IO,4,2              ; @IORESOURCE_IO
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pasemi_smb_driver,4,2          ; @pasemi_smb_driver
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PA Semi SMBus adapter at 0x%lx"

	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
	.comm	_smbus_algorithm,4,2            ; @smbus_algorithm
	.comm	_REG_CTL,4,2                    ; @REG_CTL
	.comm	_CTL_MTR,4,2                    ; @CTL_MTR
	.comm	_CTL_MRR,4,2                    ; @CTL_MRR
	.comm	_CLK_100K_DIV,4,2               ; @CLK_100K_DIV
	.comm	_CTL_CLK_M,4,2                  ; @CTL_CLK_M
	.no_dead_strip	_pasemi_smb_probe
.subsections_via_symbols
