	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postcode_store
_postcode_store:                        ## @postcode_store
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %rdi
	leaq	-40(%rbp), %rdx
	movl	$10, %esi
	callq	_kstrtoul
	movl	%eax, %ecx
	movq	-40(%rbp), %rsi
	movq	_EINVAL@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	subl	(%r14), %edx
	xorl	%r15d, %r15d
	cmpq	$1, %rsi
	cmovnel	%edx, %eax
	testl	%ecx, %ecx
	cmovnel	%ecx, %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rsi, -32(%rbp)
	movq	_HPWMI_POSTCODEERROR_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HPWMI_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$8, %ecx
	movl	$8, %r8d
	callq	_hp_wmi_perform_query
	subl	(%r14), %r15d
	movl	%r15d, %edx
LBB0_2:
	testl	%eax, %eax
	cmovsl	%eax, %edx
	cmovnel	%edx, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HPWMI_POSTCODEERROR_QUERY,4,2  ## @HPWMI_POSTCODEERROR_QUERY
	.comm	_HPWMI_WRITE,4,2                ## @HPWMI_WRITE
	.no_dead_strip	_postcode_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postcode_store
_postcode_store:                        ; @postcode_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x3
	mov	x0, x2
	add	x2, sp, #8
	mov	w1, #10
	bl	_kstrtoul
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	x8, #1
	ccmp	w0, #0, #0, ne
	csneg	w0, w0, w9, ne
	cbz	w0, LBB0_2
; %bb.1:
	neg	w8, w9
	b	LBB0_3
LBB0_2:
	str	x8, [sp]
Lloh2:
	adrp	x8, _HPWMI_POSTCODEERROR_QUERY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HPWMI_POSTCODEERROR_QUERY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _HPWMI_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HPWMI_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #8
	mov	w4, #8
	bl	_hp_wmi_perform_query
	ldr	w8, [x20]
	neg	w8, w8
LBB0_3:
	cmp	w0, #0
	csel	w8, w0, w8, lt
	csel	w0, w19, w8, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HPWMI_POSTCODEERROR_QUERY,4,2  ; @HPWMI_POSTCODEERROR_QUERY
	.comm	_HPWMI_WRITE,4,2                ; @HPWMI_WRITE
	.no_dead_strip	_postcode_store
.subsections_via_symbols
