	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds1621_init_client
_ds1621_init_client:                    ## @ds1621_init_client
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_DS1621_REG_CONF@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	_DS1621_REG_CONFIG_1SHOT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movq	_polarity@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$1, %ecx
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.2:
	movq	_DS1621_REG_CONFIG_POLARITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rbx
LBB0_4:
	cmpq	%rbx, %rax
	je	LBB0_6
LBB0_5:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_i2c_smbus_write_byte_data
LBB0_6:
	movl	(%r15), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_7
## %bb.9:
	movq	_DS1621_REG_CONFIG_RESOL@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_DS1621_REG_CONFIG_RESOL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rbx
	movq	_ds1721_convrates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, 8(%r15)
	movl	$7, %eax
	subl	%ebx, %eax
	movq	_DS1721_COM_START@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_7:
	cmpl	$131, %eax
	jne	LBB0_10
## %bb.8:
	movq	_DS1625_CONVERSION_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_3:
	movq	_DS1621_REG_CONFIG_POLARITY@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	cmpq	%rbx, %rax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_10:
	movq	_DS1621_CONVERSION_MAX@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_DS1621_COM_START@GOTPCREL(%rip), %rcx
	movl	$7, %eax
LBB0_12:
	movl	%eax, 4(%r15)
	movq	(%rcx), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DS1621_REG_CONF,4,2            ## @DS1621_REG_CONF
	.comm	_DS1621_REG_CONFIG_1SHOT,8,3    ## @DS1621_REG_CONFIG_1SHOT
	.comm	_polarity,4,2                   ## @polarity
	.comm	_DS1621_REG_CONFIG_POLARITY,8,3 ## @DS1621_REG_CONFIG_POLARITY
	.comm	_DS1625_CONVERSION_MAX,4,2      ## @DS1625_CONVERSION_MAX
	.comm	_DS1621_COM_START,8,3           ## @DS1621_COM_START
	.comm	_DS1621_REG_CONFIG_RESOL,8,3    ## @DS1621_REG_CONFIG_RESOL
	.comm	_DS1621_REG_CONFIG_RESOL_SHIFT,8,3 ## @DS1621_REG_CONFIG_RESOL_SHIFT
	.comm	_ds1721_convrates,8,3           ## @ds1721_convrates
	.comm	_DS1721_COM_START,8,3           ## @DS1721_COM_START
	.comm	_DS1621_CONVERSION_MAX,4,2      ## @DS1621_CONVERSION_MAX
	.no_dead_strip	_ds1621_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds1621_init_client
_ds1621_init_client:                    ; @ds1621_init_client
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _DS1621_REG_CONF@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DS1621_REG_CONF@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh2:
	adrp	x8, _DS1621_REG_CONFIG_1SHOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DS1621_REG_CONFIG_1SHOT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	bic	x21, x0, x8
Lloh5:
	adrp	x8, _polarity@GOTPAGE
Lloh6:
	ldr	x8, [x8, _polarity@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.1:
	cbnz	w8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _DS1621_REG_CONFIG_POLARITY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DS1621_REG_CONFIG_POLARITY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	bic	x21, x21, x8
LBB0_3:
	cmp	x0, x21
	b.eq	LBB0_5
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
LBB0_5:
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _DS1621_REG_CONFIG_RESOL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DS1621_REG_CONFIG_RESOL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	and	x8, x8, x21
Lloh14:
	adrp	x9, _DS1621_REG_CONFIG_RESOL_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DS1621_REG_CONFIG_RESOL_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	lsr	x8, x8, x9
Lloh17:
	adrp	x9, _ds1721_convrates@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ds1721_convrates@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w9, [x9, x8, lsl #2]
	str	w9, [x20, #8]
	mov	w9, #7
	sub	w9, w9, w8
Lloh20:
	adrp	x8, _DS1721_COM_START@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DS1721_COM_START@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	cmp	w8, #131
	b.ne	LBB0_10
; %bb.8:
Lloh22:
	adrp	x8, _DS1625_CONVERSION_MAX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DS1625_CONVERSION_MAX@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _DS1621_REG_CONFIG_POLARITY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DS1621_REG_CONFIG_POLARITY@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	orr	x21, x8, x21
	cmp	x0, x21
	b.ne	LBB0_4
	b	LBB0_5
LBB0_10:
Lloh27:
	adrp	x8, _DS1621_CONVERSION_MAX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DS1621_CONVERSION_MAX@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh29:
	adrp	x8, _DS1621_COM_START@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DS1621_COM_START@GOTPAGEOFF]
	mov	w9, #7
LBB0_12:
	str	w9, [x20, #4]
	ldr	x1, [x8]
	mov	x0, x19
	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
	b	_i2c_smbus_write_byte
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DS1621_REG_CONF,4,2            ; @DS1621_REG_CONF
	.comm	_DS1621_REG_CONFIG_1SHOT,8,3    ; @DS1621_REG_CONFIG_1SHOT
	.comm	_polarity,4,2                   ; @polarity
	.comm	_DS1621_REG_CONFIG_POLARITY,8,3 ; @DS1621_REG_CONFIG_POLARITY
	.comm	_DS1625_CONVERSION_MAX,4,2      ; @DS1625_CONVERSION_MAX
	.comm	_DS1621_COM_START,8,3           ; @DS1621_COM_START
	.comm	_DS1621_REG_CONFIG_RESOL,8,3    ; @DS1621_REG_CONFIG_RESOL
	.comm	_DS1621_REG_CONFIG_RESOL_SHIFT,8,3 ; @DS1621_REG_CONFIG_RESOL_SHIFT
	.comm	_ds1721_convrates,8,3           ; @ds1721_convrates
	.comm	_DS1721_COM_START,8,3           ; @DS1721_COM_START
	.comm	_DS1621_CONVERSION_MAX,4,2      ; @DS1621_CONVERSION_MAX
	.no_dead_strip	_ds1621_init_client
.subsections_via_symbols
